JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 86421
  • Score
    100M100P100Q179935F

node-zip - Zip/Unzip files ported from JSZip

Package Exports

  • node-zip

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (node-zip) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

node-zip

node-zip - Zip/Unzip files ported from JSZip

Installation

npm install node-zip

Usage

Zip:

var zip = new require('node-zip')();
zip.file('test.file', 'hello there');
var data = zip.generate({base64:false,compression:'DEFLATE'});
console.log(data); // ugly data

Unzip:

var zip = new require('node-zip')(data, {base64: false, checkCRC32: true});
console.log(zip.files['test.file']); // hello there

You can also load directly:

require('node-zip');
var zip = new JSZip(data, options)
...

Manual

node-zip uses JSZip, please refer to their website for further information: http://stuartk.com/jszip/

License

MIT