setup-dotnet/node_modules/strip-eof
2019-10-03 16:35:25 -07:00
..
index.js GPR authentication support 2019-10-03 16:35:25 -07:00
license GPR authentication support 2019-10-03 16:35:25 -07:00
package.json GPR authentication support 2019-10-03 16:35:25 -07:00
readme.md GPR authentication support 2019-10-03 16:35:25 -07: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