emphasis

0.3.0 • Public • Published

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...

Package Sidebar

Install

npm i emphasis

Weekly Downloads

1

Version

0.3.0

License

ISC

Unpacked Size

1.26 kB

Total Files

3

Last publish

Collaborators

  • xulien