lhl 2bdf874dbb create 11 ماه پیش
..
index.js 2bdf874dbb create 11 ماه پیش
license 2bdf874dbb create 11 ماه پیش
package.json 2bdf874dbb create 11 ماه پیش
readme.md 2bdf874dbb create 11 ماه پیش

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