Skip to content

About

Detect the indentation of code

Resources

Code of conduct

Contributing

Stars

24 stars

Watchers

6 watching

Forks

Repository files navigation

detect-indent-cli

Detect the indentation of code

Install

npm install --global detect-indent-cli

Usage

$ detect-indent --help

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

  Options
    --verbose  Show indent type and amount

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

    $ echo '  foo\n  bar' | detect-indent --verbose
    Type: space
    Amount: 2

Related

About

Detect the indentation of code

Resources

Code of conduct

Contributing

Stars

24 stars

Watchers

6 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages