Irina Glushko 2389e7160b HW1 done | %!s(int64=3) %!d(string=hai) anos | |
---|---|---|
.. | ||
index.js | %!s(int64=3) %!d(string=hai) anos | |
license | %!s(int64=3) %!d(string=hai) anos | |
package.json | %!s(int64=3) %!d(string=hai) anos | |
readme.md | %!s(int64=3) %!d(string=hai) anos |
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