Detect the indentation of code
npm install --global detect-indent-cli
$ detect-indent --help
Usage
$ detect-indent <file>
echo <string> | detect-indent
Example
$ echo ' foo\n bar' | detect-indent | wc --chars
2
- detect-indent - API for this module
- detect-newline-cli - Detect the dominant newline character