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

536 B

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