I thought this was something npm handles, but it's not, and the only work around is to use \n, as mentioned in nodejs/node-v0.x-archive#4310
If you'd like I can make a PR that switches the line endings, but it's best to prevent conflicts if you do it.