@20minutes/content-slug
v1.0.1
Published
Content slugification for 20 Minutes
Downloads
350
Readme
@20minutes/content-slug
URL slugification used by 20 Minutes for content URL.
Installation
npm install @20minutes/content-slug
Usage
import { toContentSlug, unaccentize} from '@20minutes/content-slug'
toContentSlug('j'ai mangé des pommes et des poires et c'était bon !')
// mange-pommes-poires-bon
unaccentize('mangé')
// mange