endofline
v1.0.0
Published
just return end of line based on the os.platform()
Readme
endofline
Simple module that returns end of line base on the os.platform() in node. When platform is windows it will return '\r\n' and in other case it will return '\n'
instalation
npm install endoflineusage
var eol = require('endofline');
var fs = requrie('fs');
var hosts = fs.readFileSync('/etc/hosts', 'utf-8').split(eol);