deterministic-zip
A ZIP library that generates the same zip file from the same files every time
Last updated 4 months ago by evanderkoogh .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install deterministic-zip 
SYNC missed versions from official npm registry.

deterministic-zip

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 --save

Zip

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

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.

Current Tags

  • 1.1.0                                ...           latest (4 months ago)

7 Versions

  • 1.1.0                                ...           4 months ago
  • 1.0.5                                ...           3 years ago
  • 1.0.4                                ...           3 years ago
  • 1.0.3                                ...           3 years ago
  • 1.0.2                                ...           3 years ago
  • 1.0.1                                ...           3 years ago
  • 1.0.0                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 5
Last Day 0
Last Week 2
Last Month 12
Dependencies (3)
Dev Dependencies (0)
None

Copyright 2014 - 2016 © taobao.org |