Muqriz 48f16bfc3e initail first | 4 months ago | |
---|---|---|
.. | ||
index.js | 4 months ago | |
license | 4 months ago | |
package.json | 4 months ago | |
readme.md | 4 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