detect-indent-cli

Detect the indentation of code

Usage no npm install needed!

<script type="module">
  import detectIndentCli from 'https://cdn.skypack.dev/detect-indent-cli';
</script>

README

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

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

Related