@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