Files
Nick Cipollo e75a11bff3
Some checks failed
PR Checks / check_pr (push) Has been cancelled
Create 1.4.0 release
2019-12-13 16:07:38 -05:00
..
2019-12-13 16:07:38 -05:00
2019-12-13 16:07:38 -05:00
2019-12-13 16:07:38 -05:00
2019-12-13 16:07:38 -05:00

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