stale/node_modules/strip-eof
Shawn Napora c607b751c2 release v1 2019-08-06 17:37:58 -04:00
..
index.js release v1 2019-08-06 17:37:58 -04:00
license release v1 2019-08-06 17:37:58 -04:00
package.json release v1 2019-08-06 17:37:58 -04:00
readme.md release v1 2019-08-06 17:37:58 -04:00

readme.md

strip-eof Build Status

Strip the End-Of-File (EOF) character from a string/buffer

Install

$ npm install --save strip-eof

Usage

const stripEof = require('strip-eof');

stripEof('foo\nbar\n\n');
//=> 'foo\nbar\n'

stripEof(new Buffer('foo\nbar\n\n')).toString();
//=> 'foo\nbar\n'

License

MIT © Sindre Sorhus