EOL—'\n' vs. '\r\n':
– With files and strings read from files, you can detect the EOL and use it when writing files.
– On Node.js, you can use os.EOL.
But what about multi-line strings in error messages that must work in browsers and Node.js? Always '\n'?