// 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
Sick of boring JavaScript newsletters?
Bytes is a JavaScript newsletter you'll actually enjoy reading.