Eric Foster 35b96bc934 initial commit 6 år sedan
..
index.js initial commit 6 år sedan
license initial commit 6 år sedan
package.json initial commit 6 år sedan
readme.md initial commit 6 år sedan

readme.md

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