Big update!Announcing Socket for GitHub 1.0. Learn more
Socket
BlogLoveFAQ
Install
Log in

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

Version published
Maintainers
1
Weekly downloads
16,586,906
decreased by-4.31%

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 13,927,375 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
Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc