title: How to split string with newline ('\n') in Node?
body: <p>Within Node, how do I split a string using newline ('\n') ?
  I have a simple string like <code>var a = &quot;test.js\nagain.js&quot;</code> and I need to get <code>[&quot;test.js&quot;, &quot;again.js&quot;]</code>.
  I tried</p>
  <pre><code>a.split(&quot;\n&quot;);
  a.split(&quot;\\n&quot;);
  a.split(&quot;\r\n&quot;);
  a.split(&quot;\r&quot;);
  </code></pre>
  <p>but the above doesn't work.</p>