3.0.0 • Published 3 years ago

slugify-cli v3.0.0

Weekly downloads
294
License
MIT
Repository
github
Last release
3 years ago

slugify-cli

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