FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

sindresorhus/indent-string-cli: Indent each line in a string · GitHub

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

About

Indent each line in a string

Resources

Code of conduct

Contributing

Stars

7 stars

Watchers

5 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages


Back | FazBrowse Home | New Git URL