A small module for detecting line endings in files.
Install with npm
npm install --save newline
// Detects the line ending used in the string source and returns "CR", "LF" or "CRLF" newline.detect(source); var newSource = newline.set(source, "LF"); // Sets the source to the specified line endings
npm3 does not install dependencies in a deterministic way, but this has no implications for your application. Learn more…
how? learn more