setup-kubectl/node_modules/strip-eof
2022-11-02 14:26:33 +00:00
..
index.js Add node modules and compiled JavaScript from main 2022-11-02 14:26:33 +00:00
license Add node modules and compiled JavaScript from main 2022-11-02 14:26:33 +00:00
package.json Add node modules and compiled JavaScript from main 2022-11-02 14:26:33 +00:00
readme.md Add node modules and compiled JavaScript from main 2022-11-02 14:26:33 +00: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