Socket
Socket
Sign inDemoInstall

reproducible-deflate

Package Overview
Dependencies
1
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    reproducible-deflate

Alternative to zlib.createDeflate with guaranteed reproducibility


Version published
Maintainers
1
Install size
919 kB
Created

Readme

Source

reproducible-deflate for node and iojs

Alternative to zlib.createDeflate with guaranteed reproducibility.

Travis build status

Sometimes (e.g. when performing automated regression tests) it is important that the same input will always be compressed to the same output. Since the zlib library of node.js ships with node.js, and might even depend on the operating system in addition to the node.js version number. that can make no such guarantees. Therefore, we use a fixed version of the JavaScript-only implementation pako to offer reproducible results.

Installation

npm install reproducible-deflate

Usage

// Load the library
var rd = require("reproducible-deflate");

// create a deflate stream
var deflate = rd.createDeflate(options);

// use the deflate stream
deflate.pipe(output);
deflate.data(input);
deflate.end();

Options

The options to createDeflate are passed on to pako.Deflate.

Keywords

FAQs

Last updated on 28 Aug 2015

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc