Socket
Socket
Sign inDemoInstall

bzip2-maybe

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bzip2-maybe

Transform stream that `bzip2`s its input if it is `bzip2`ped and just echoes it if not


Version published
Weekly downloads
2.1K
decreased by-0.28%
Maintainers
1
Weekly downloads
 
Created
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

Package 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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc