@furkot/export-zip
Version:
Composite exporter that solves problem of downloading/exporting multiple files.
42 lines (27 loc) • 1.08 kB
Markdown
[![NPM version][npm-image]][npm-url]
[![Build Status][build-image]][build-url]
[![Dependency Status][deps-image]][deps-url]
Composite exporter that solves problem of downloading/exporting multiple files.
```sh
$ npm install --save @furkot/export-zip
```
```js
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));
```
MIT © [Damian Krzeminski](https://pirxpilot.me)
[]: https://img.shields.io/npm/v/@furkot/export-zip
[]: https://npmjs.org/package/@furkot/export-zip
[]: https://github.com/furkot/export-zip/actions/workflows/check.yaml
[]: https://img.shields.io/github/actions/workflow/status/furkot/export-zip/check.yaml?branch=main
[]: https://img.shields.io/librariesio/release/npm/@furkot/export-zip
[]: https://libraries.io/npm/@furkot%2Fexport-zip