1
0
CompleteNodeJS/notes-app/node_modules/strip-eof
Jason Williams 6528d7204a Section 20
2019-08-11 12:15:16 -06:00
..
index.js Section 20 2019-08-11 12:15:16 -06:00
license Section 20 2019-08-11 12:15:16 -06:00
package.json Section 20 2019-08-11 12:15:16 -06:00
readme.md Section 20 2019-08-11 12:15:16 -06:00

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