endofline

1.0.0 • Public • Published

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 endofline

usage

var eol = require('endofline');
var fs = requrie('fs');
 
var hosts = fs.readFileSync('/etc/hosts', 'utf-8').split(eol);

Readme

Keywords

Package Sidebar

Install

npm i endofline

Weekly Downloads

3,007

Version

1.0.0

License

MIT

Last publish

Collaborators

  • gorangajic