Detect the indentation of code
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.editorconfig
.gitattributes
.gitignore
.npmrc
.travis.yml
cli.js
fixture.js
license
package.json
readme.md
test.js

readme.md

detect-indent-cli Build Status

Detect the indentation of code

Install

$ npm install --global detect-indent-cli

Usage

$ detect-indent --help

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

  Example
    $ echo '  foo\n  bar' | detect-indent | wc --chars
    2

Related

License

MIT © Sindre Sorhus