Skip to main content

apiverve_slugify 1.2.6 copy "apiverve_slugify: ^1.2.6" to clipboard
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.

pub package License: MIT

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 #

Authentication #

All requests require an API key. Get yours at apiverve.com.

License #

MIT License - see LICENSE for details.


Built with Dart for APIVerve

0
likes
130
points
67
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

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.

License

MIT (license)

Dependencies

http, http_parser

More

Packages that depend on apiverve_slugify