2.0.0 • Published 6 years ago
strip-eof v2.0.0
strip-eof
Strip the End-Of-File (EOF) character from a string/buffer
Install
$ npm install strip-eof
Usage
const stripEof = require('strip-eof');
stripEof('foo\nbar\n\n');
//=> 'foo\nbar\n'
stripEof(Buffer.from('foo\nbar\n\n')).toString();
//=> 'foo\nbar\n'
License
MIT © Sindre Sorhus