Socket
Socket
Sign inDemoInstall

bzip2-maybe

Package Overview
Dependencies
5
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

bzip2-maybe


Version published
Maintainers
1
Install size
501 kB
Created

Readme

Source

build status Coverage Status js-standard-style

bzip2-maybe

Transform stream that bzip2s its input if it is bzip2ped and just echoes it if not.

This is based on code from gunzip-maybe

npm install bzip2-maybe

Usage

Simply pipe a bzip2ped (or not bgzip2ped) stream to bzip2() function and read the unbzip2ped content.

// this will `bzip2` bzip2pedStream
bzip2pedStream.pipe(bzip2()).pipe(process.stdout);

// this will just echo plainTextStream
plainTextStream.pipe(bzip2()).pipe(process.stdout);

CLI usage

npm install -g bzip2-maybe
bzip2-maybe --help  # will print out usage

License

MIT

FAQs

Last updated on 20 Aug 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc