joyent/node — Issue #2128: console.log doesn't use '\r' on Windows
Author: lapo-luchini
Created: 2011-11-16 11:53:02+00:00
State: open

I was pretty divided myself whether to open this issue or not, but it might be a use-case spread enough to warrant for an issue (at worst, the issue will be closed, I guess).

Have any node.js script use `console.log` a few times, executed from `cmd.exe` it works ok, one string per line.
If the output is piped to a log file and then opened with `notepad.exe`, all is on a single line.
Of course there are work-arounds (even available by default in Windows, like using `wordpad.exe`), but maybe sticking to the platform standard `'\r\n'` could be better.