endofline

just return end of line based on the os.platform()

MIT 4 个版本
安装
npm install endofline
yarn add endofline
pnpm add endofline
bun add endofline
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 endofline

usage

var eol = require('endofline');
var fs = requrie('fs');

var hosts = fs.readFileSync('/etc/hosts', 'utf-8').split(eol);
版本列表
1.0.0 2015-12-02
0.0.3 2015-10-26
0.0.2 2015-10-26
0.0.1 2015-10-26