yrik 0fb20a58e3 提交 4 lat temu
..
index.js eec7f449c9 first commit 4 lat temu
license eec7f449c9 first commit 4 lat temu
package.json 0fb20a58e3 提交 4 lat temu
readme.md eec7f449c9 first commit 4 lat temu

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