@synchronopeia/slugify
v0.1.1
Published
deburr and kebab case labels to make slugs
Downloads
2
Readme
Slugify Labels
Motivation
Sometimes we just want to do:
slugify("Côte d'Ivoire REDD+ Finance")); // cote-d-ivoire-redd-plus-finance
For more complicated use cases, we use the impressive @sindresorhus/slugify.
Details
Does a deburr and converts to kebab case after some simple character replacements.
The character replacements are
Char | Replacement ---- | ----------- & | and + | plus / | slash # | hash @ | at . | dot
Dependencies
We use the standalone lodash modules lodash.deburr and lodash.kebabcase.
Requirements
We use es6 modules (Node version >= 13.2.0). See Announcing core Node.js support for ECMAScript modules.