slugify2 0.2.1

Dart native js
Flutter Android iOS web

Converts strings into slugs, for pretty URLs

Fork #

This original repository : https://github.com/izolate/slugify

slugify #

Converts strings to slugs, for pretty URLs

Features #

  • Removes special characters
  • Approximates replacements for characters not in the Latin alphabet
  • Allows custom delimiter and case sensitivity

Usage #

import 'package:slugify/slugify.dart';

Slugify slugify = new Slugify();
String slug = slugify.slugify('Hello World!');

print(slug); // hello-world

Custom settings #

By default, the slugs returned are lowercased and delimited by - to optimize for URL use. You can override this by supplying the parameters delimiter (String) and lowercase (bool) when instantiating the class.

new Slugify(delimiter: '_', lowercase: false);
0
likes
70
pub points
89%
popularity

Converts strings into slugs, for pretty URLs

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

kameleon836@gmail.com

License

BSD (LICENSE)

More

Packages that depend on slugify2