Files
labeler/node_modules/strip-eof
Danny McCormick 04aa5dbc72 Publish (#11)
* Publish

* Update .gitignore

* node modules

* Update .gitignore
2019-08-23 10:21:51 -04:00
..
2019-08-08 10:10:17 -04:00
2019-08-08 10:10:17 -04:00
2019-08-23 10:21:51 -04:00
2019-08-08 10:10:17 -04: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