TransFlow/node_modules/strip-eof
何嘉峣 d0b8157bbe 代码提交 2022-12-15 10:56:04 +08:00
..
index.js 代码提交 2022-12-15 10:56:04 +08:00
license 代码提交 2022-12-15 10:56:04 +08:00
package.json 代码提交 2022-12-15 10:56:04 +08:00
readme.md 代码提交 2022-12-15 10:56:04 +08:00

readme.md

strip-eof Build Status

Strip the End-Of-File (EOF) character from a string/buffer

Install

$ npm install --save strip-eof

Usage

const stripEof = require('strip-eof');

stripEof('foo\nbar\n\n');
//=> 'foo\nbar\n'

stripEof(new Buffer('foo\nbar\n\n')).toString();
//=> 'foo\nbar\n'

License

MIT © Sindre Sorhus