setup-maven/node_modules/strip-eof
2019-12-07 16:09:23 +03:00
..
index.js Husky commit correct node modules 2019-12-07 16:09:23 +03:00
license Husky commit correct node modules 2019-12-07 16:09:23 +03:00
package.json Husky commit correct node modules 2019-12-07 16:09:23 +03:00
readme.md Husky commit correct node modules 2019-12-07 16:09:23 +03: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