AJNB 376d9cfaf8 hjj | 2 months ago | |
---|---|---|
.. | ||
index.js | 2 months ago | |
license | 2 months ago | |
package.json | 2 months ago | |
readme.md | 2 months ago |
Strip the End-Of-File (EOF) character from a string/buffer
$ npm install --save strip-eof
const stripEof = require('strip-eof');
stripEof('foo\nbar\n\n');
//=> 'foo\nbar\n'
stripEof(new Buffer('foo\nbar\n\n')).toString();
//=> 'foo\nbar\n'
MIT © Sindre Sorhus