Awesome
detect-newline-cli
Detect the dominant newline character
Install
npm install --global detect-newline-cli
Usage
$ detect-newline --help
Usage
$ detect-newline <string>
$ cat unicorn.txt | detect-newline
Example
$ detect-newline "$(printf 'Unicorns\nRainbows')"
\n
Related
- detect-newline - API for this module
- detect-indent-cli - Detect the indentation of code