Miss any of our Open RFC calls?Watch the recordings here! »

slugify-cli

2.0.0 • Public • Published

slugify-cli Build Status

Slugify a string

Install

$ npm install --global slugify-cli

Usage

$ slugify --help

  Usage
    $ slugify <string>

  Options
    --separator=<string>           Word separator [Default: -]
    --no-lowercase                 Don’t make the slug lowercase
    --no-decamelize                Don’t convert camelCase to separate words
    --preserve-leading-underscore  If your string starts with an underscore, it will be preserved in the slugified string

  Examples
    $ slugify 'Déjà Vu!'
    deja-vu
    $ slugify 'Unicorns & Rainbows' --separator='_'
    unicorns_and_rainbows

Related

Install

npm i slugify-cli

DownloadsWeekly Downloads

82

Version

2.0.0

License

MIT

Unpacked Size

3.78 kB

Total Files

4

Last publish

Collaborators

  • avatar