|
|
||||
|---|---|---|---|---|
| .. | ||||
| index.js | 11e3a9652a | 7 年之前 | ||
| license | 11e3a9652a | 7 年之前 | ||
| package.json | 11e3a9652a | 7 年之前 | ||
| readme.md | 11e3a9652a | 7 年之前 | ||
Strip the End-Of-File (EOF) character from a string/buffer
$ npm install --save strip-eof
const stripEof = require('strip-eof');
stripEof('foo\nbar\n\n');
//=> 'foo\nbar\n'
stripEof(new Buffer('foo\nbar\n\n')).toString();
//=> 'foo\nbar\n'
MIT © Sindre Sorhus