npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

filenamify-cli

3.0.0

@sindresorhus

npmHomeRepoSnykSocket
Downloads:0
$ npm install filenamify-cli
DailyWeeklyMonthlyYearly

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

  • filenamify - API for this package