christian 4571a14169 android fix | 3 lat temu | |
---|---|---|
.. | ||
index.js | 3 lat temu | |
license | 3 lat temu | |
package.json | 3 lat temu | |
readme.md | 3 lat temu |
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