helps to detect and change line endings in strings
npm install crlf-helper
helps to detect and change line endings in node.js strings
npm install crlf-helper
var crlf = require('crlf-helper');var content = 'content\r\nwith line break'
var lineEnding = crlf.getLineEnding();
console.log(lineEnding);
// CRLF
var contentWithNewLineEnding = crlf.setLineEnding(content, 'LF');
console.log(contentWithNewLineEnding);
// content\nwith line break
``If you find a bug or issues, please create an issue at github.