Skip to content
This repository was archived by the owner on May 5, 2022. It is now read-only.
/ emphasis Public archive

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

Notifications You must be signed in to change notification settings

xulien/emphasis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published