Files
Nick Cipollo 2bea8f5693
Some checks failed
PR Checks / check_pr (push) Has been cancelled
Prepare release 1.7.0
2020-05-25 17:22:36 -04:00
..
2020-05-25 17:22:36 -04:00
2020-05-25 17:22:36 -04:00
2020-05-25 17:22:36 -04:00
2020-05-25 17:22:36 -04: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