Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | - | - | ||||
index.js | D | 12-May-2024 | 315 | 16 | 12 | |
license | D | 12-May-2024 | 1.1 KiB | 22 | 17 | |
package.json | D | 12-May-2024 | 1.6 KiB | 72 | 71 | |
readme.md | D | 12-May-2024 | 536 | 29 | 16 |
readme.md
1# strip-eof [](https://travis-ci.org/sindresorhus/strip-eof) 2 3> Strip the [End-Of-File](https://en.wikipedia.org/wiki/End-of-file) (EOF) character from a string/buffer 4 5 6## Install 7 8``` 9$ npm install --save strip-eof 10``` 11 12 13## Usage 14 15```js 16const stripEof = require('strip-eof'); 17 18stripEof('foo\nbar\n\n'); 19//=> 'foo\nbar\n' 20 21stripEof(new Buffer('foo\nbar\n\n')).toString(); 22//=> 'foo\nbar\n' 23``` 24 25 26## License 27 28MIT © [Sindre Sorhus](http://sindresorhus.com) 29