JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 38
  • Score
    100M100P100Q65772F
  • License MIT

Slugify a string

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (slugify-cli) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    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