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