indent-string-cli

3.0.0 • Public • Published

indent-string-cli

Indent each line in a string

Install

npm install --global indent-string-cli

Usage

$ indent-string --help

  Usage
    $ indent-string <string> [--count=<number>] [--indent=<string>]
    $ cat file.txt | indent-string > indented-file.txt

  Example
    $ indent-string "$(printf 'Unicorns\nRainbows\n')" --count=4 --indent=♥
    ♥♥♥♥Unicorns
    ♥♥♥♥Rainbows

Related

Package Sidebar

Install

npm i indent-string-cli

Weekly Downloads

1

Version

3.0.0

License

MIT

Unpacked Size

3.27 kB

Total Files

4

Last publish

Collaborators

  • sindresorhus