How in node to split string by newline (\'\\n\') ? I have simple string like var a = \"test.js\\nagain.js\" and I need to get [\"test.js\", \"again.js\"]<
var a = \"test.js\\nagain.js\"
[\"test.js\", \"again.js\"]<
I made an eol module for working with line endings in node or browsers. It has a split method like
var lines = eol.split(text)