Skip to content

Convert a string to a valid safe filename on the command-line

License

Notifications You must be signed in to change notification settings

sindresorhus/filenamify-cli

filenamify-cli

Convert a string to a valid safe filename on the command-line

Install

npm install --global filenamify-cli

Usage

$ filenamify --help

  Usage
    $ filenamify <text>

  Options
    --replacement  Replacement for reserved filename characters [Default: !]

  Example
    $ filenamify 'foo/bar' --replacement=🦄
    foo🦄bar
    $ filenamify 'https://sindresorhus.com/foo?bar=baz'
    sindresorhus.com!foo!bar=baz

Related

About

Convert a string to a valid safe filename on the command-line

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •