github-pages-deploy-action/node_modules/strip-eof
2020-03-31 08:57:48 -04:00
..
index.js Dependencies 2020-01-28 00:08:03 -05:00
license Dependencies 2020-01-28 00:08:03 -05:00
package.json 3.4.3 Dependencies 2020-03-31 08:57:48 -04:00
readme.md Dependencies 2020-01-28 00:08:03 -05: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