deterministic-zip-ng
TypeScript icon, indicating that this package has built-in type declarations

2.1.1 • Public • Published

deterministic-zip-ng

Regular zip binaries and libraries often generate different zip files from the same files most often because of metadata or timestamps. Deterministic-zip guarantees to always generate the same zip file every time.

This is a major problem when creating a reproducible build. The output from two builds from identical source would generate two different zip files.

With deterministic-zip you are guaranteed to get the exact same file every time you build from the same input.

Usage

Install

npm install deterministic-zip-ng --save

Zip

const zip = require('deterministic-zip-ng');

zip('data', 'test.zip', {includes: ['./index.js', './src/**'], cwd: 'data'}, (err) => {
    console.log('Done!');
});

Warning

This is a very new library. I use it myself, but it has not been extensively test across multiple platforms, especially Windows.

Readme

Keywords

none

Package Sidebar

Install

npm i deterministic-zip-ng

Weekly Downloads

503

Version

2.1.1

License

MIT

Unpacked Size

9.52 kB

Total Files

5

Last publish

Collaborators

  • metastable-void