Big update!Introducing GitHub Bot Commands. Learn more
Socket
Log inDemoInstall

strip-eof

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Issues
File Explorer

Advanced tools

strip-eof

Strip the final newline character from a string/buffer

    2.0.0latest
    Github

Version published
Maintainers
1
Weekly downloads
16,006,712
increased by5.04%

Weekly downloads

Readme

Source

strip-eof Build Status

Strip the End-Of-File (EOF) character from a string/buffer

Install

$ npm install strip-eof

Usage

const stripEof = require('strip-eof'); stripEof('foo\nbar\n\n'); //=> 'foo\nbar\n' stripEof(Buffer.from('foo\nbar\n\n')).toString(); //=> 'foo\nbar\n'

License

MIT © Sindre Sorhus

Keywords

FAQs

What is strip-eof?

Strip the final newline character from a string/buffer

Is strip-eof popular?

The npm package strip-eof receives a total of 12,964,923 weekly downloads. As such, strip-eof popularity was classified as popular.

Is strip-eof well maintained?

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.

Last updated on 28 Oct 2018

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.

Install Socket
Socket[email protected]

Product

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc