Skip to content

20minutes/content-slug

Repository files navigation

@20minutes/content-slug

Build status NPM

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

License

The MIT License