lihai 8d6c751f49 feat: push %!s(int64=2) %!d(string=hai) anos
..
index.js 8d6c751f49 feat: push %!s(int64=2) %!d(string=hai) anos
license 8d6c751f49 feat: push %!s(int64=2) %!d(string=hai) anos
package.json 8d6c751f49 feat: push %!s(int64=2) %!d(string=hai) anos
readme.md 8d6c751f49 feat: push %!s(int64=2) %!d(string=hai) anos

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