emphasis
v0.3.0
Published
small function that normalizes a string which does not contain either for emphasis, spaces or special character
Downloads
12
Maintainers
Readme
Emphasis
Small function that normalizes a string which does not contain either for emphasis, spaces or special character. Usefull for a clean url.
Usage:
const emphasis = require('emphasis')
const naturalId = emphasis("Asperges blanches sauce printanière, Pâté de Pâques")
// asperges-blanches-sauce-printaniere-pate-de-paques
Todo:
- add tests...