setup-python/node_modules/strip-eof
Danny McCormick 39c08a0eaa Initial pass
2019-06-26 21:12:00 -04:00
..
index.js Initial pass 2019-06-26 21:12:00 -04:00
license Initial pass 2019-06-26 21:12:00 -04:00
package.json Initial pass 2019-06-26 21:12:00 -04:00
readme.md Initial pass 2019-06-26 21:12:00 -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