strip-indent-cli
Strip leading whitespace from each line in a string
Last updated 4 years ago by sindresorhus .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install strip-indent-cli 
SYNC missed versions from official npm registry.

strip-indent-cli Build Status

Strip leading whitespace from each line in a string

The line with the least number of leading whitespace, ignoring empty lines, determines the number to remove.

Install

$ npm install --global strip-indent-cli

Usage

$ strip-indent --help

  Usage
    $ strip-indent <file>
    $ echo <string> | strip-indent

  Example
    $ echo '\tunicorn\n\t\tcake' | strip-indent
    unicorn
        cake

Related

License

MIT © Sindre Sorhus

Current Tags

  • 1.0.0                                ...           latest (4 years ago)

1 Versions

  • 1.0.0                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (3)
Dev Dependencies (3)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |