apiverve_slugify 1.2.6
apiverve_slugify: ^1.2.6 copied to clipboard
Slugify converts text into clean, URL-friendly slugs with custom separators and optional lowercase formatting. Pass any raw string to get back the original text and its normalized slug with accents st [...]
Slugify API - Dart/Flutter Client #
Slugify converts text into clean, URL-friendly slugs with custom separators and optional lowercase formatting. Pass any raw string to get back the original text and its normalized slug with accents stripped and spaces replaced.
This is the Dart/Flutter client for the Slugify API.
Installation #
Add this to your pubspec.yaml:
dependencies:
apiverve_slugify: ^1.2.6
Then run:
dart pub get
# or for Flutter
flutter pub get
Usage #
import 'package:apiverve_slugify/apiverve_slugify.dart';
void main() async {
final client = SlugifyClient('YOUR_API_KEY');
try {
final response = await client.execute({
'text': 'Hello World! This is a Test & Example',
'separator': '-',
'lowercase': true
});
print('Status: ${response.status}');
print('Data: ${response.data}');
} catch (e) {
print('Error: $e');
}
}
Response #
{
"status": "ok",
"error": null,
"data": {
"original": "Hello World! This is a Test & Example",
"slug": "hello-world-this-is-a-test-example",
"separator": "-",
"lowercase": true,
"length": 34
}
}
API Reference #
- API Home: Slugify API
- Documentation: docs.apiverve.com/ref/slugify
Authentication #
All requests require an API key. Get yours at apiverve.com.
License #
MIT License - see LICENSE for details.
Built with Dart for APIVerve