Skip to content

Latest commit

 

History

History
41 lines (27 loc) · 1.05 KB

File metadata and controls

41 lines (27 loc) · 1.05 KB

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

import exportZip from '@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