slugcopy

1.1.0 • Public • Published

slugcopy

Slugify strings and copy to clipboard

Install

npm install --global slugcopy

Usage

$ slugcopy --help

  Usage
    $ slugcopy <string>

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


  Examples
    $ slugcopy Déjà Vu!
    deja-vu
    $ slugcopy Like a Boss --no-lowercase --separator='_'
    Like_a_Boss

Related

Package Sidebar

Install

npm i slugcopy

Weekly Downloads

5

Version

1.1.0

License

MIT

Unpacked Size

5.22 kB

Total Files

6

Last publish

Collaborators

  • pollmix