crlf
Detect and change line endings
Usage
The cli is probably the one you're looking for, first npm install -g crlf
.
Usage is something like this:
$ crlf index.jsindex.js CRLF$ crlf *.jsindex.js CRLFtest.js LF$ crlf --set=LF *.jsindex.js CRLF -> LFtest.js LF -> LF$ crlf index.jsLF
Here's the API usage
var crlf = ; crlf;crlf;