setup-rust-action/node_modules/strip-eof
Héctor Ramón Jiménez 7f8c3a27a4 Track node_modules
2019-08-15 19:37:37 +02:00
..
index.js Track node_modules 2019-08-15 19:37:37 +02:00
license Track node_modules 2019-08-15 19:37:37 +02:00
package.json Track node_modules 2019-08-15 19:37:37 +02:00
readme.md Track node_modules 2019-08-15 19:37:37 +02: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