Bakhtina Sofya b84cb877be 1st comm | 3 weken geleden | |
---|---|---|
.. | ||
index.js | 3 weken geleden | |
license | 3 weken geleden | |
package.json | 3 weken geleden | |
readme.md | 3 weken geleden |
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