strip-eof
Strip the End-Of-File (EOF) character from a string/buffer
Install
$ npm install strip-eof
Usage
const stripEof = ; ;//=> 'foo\nbar\n' ;//=> 'foo\nbar\n'
License
MIT © Sindre Sorhus
This package has been deprecated
Author message:
Renamed to `strip-final-newline` to better represent its functionality.
Strip the End-Of-File (EOF) character from a string/buffer
$ npm install strip-eof
const stripEof = ; ;//=> 'foo\nbar\n' ;//=> 'foo\nbar\n'
MIT © Sindre Sorhus
npm i strip-eof
10,628,706
2.0.0
MIT
2.63 kB
4