xulien / emphasis

Small function that normalizes a string which does not contain either for emphasis, spaces or special character. Usefull for a clean url.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Small function that normalizes a string which does not contain either for emphasis, spaces or special character. Usefull for a clean url.


Languages

Language:JavaScript 100.0%