Files
julia-runtest/node_modules/strip-eof
David Anthoff c0c6ce37ca Add node deps
2019-09-14 21:05:22 -07:00
..
2019-09-14 21:05:22 -07:00
2019-09-14 21:05:22 -07:00
2019-09-14 21:05:22 -07:00
2019-09-14 21:05:22 -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