filenamify-cli

2.1.0 • Public • Published

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

Package Sidebar

Install

npm i filenamify-cli

Weekly Downloads

21

Version

2.1.0

License

MIT

Unpacked Size

3.33 kB

Total Files

4

Last publish

Collaborators

  • sindresorhus