0.1.0 • Published 3 years ago

@furkot/export-zip v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

NPM version Build Status Dependency Status

@furkot/export-zip

Composite exporter that solves problem of downloading/exporting multiple files.

Install

$ npm install --save @furkot/export-zip

Usage

const exportZip = require('@furkot/export-zip');

const buffers = exportZip([
  { name: 'day-1', bytes: day1 },
  { name: 'day-2', bytes: day2 }
]);

// buffers is now a generator/iterator producing store-only zip file
const zip = new Blob(Array.from(buffers));

License

MIT © Damian Krzeminski