strip-eof
Advanced tools
Weekly downloads
Readme
Strip the End-Of-File (EOF) character from a string/buffer
$ npm install strip-eof
const stripEof = require('strip-eof');
stripEof('foo\nbar\n\n');
//=> 'foo\nbar\n'
stripEof(Buffer.from('foo\nbar\n\n')).toString();
//=> 'foo\nbar\n'
MIT © Sindre Sorhus
Strip the final newline character from a string/buffer
The npm package strip-eof receives a total of 12,964,923 weekly downloads. As such, strip-eof popularity was classified as popular.
We found that strip-eof demonstrated a not healthy version release cadence and project activity because the last version was released a year ago.It has 1 open source maintainer collaborating on the project.
Did you know?
Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.