list-to-zip

0.1.0 • Public • Published

list-to-zip

Create and downloads a zip file from list of files urls.

Installation

npm install list-to-zip

or

yarn add list-to-zip

Usage Example

import listZip from 'list-to-zip';

const myList = [
  'https://pngimg.com/uploads/raccoon/raccoon_PNG16972.png',
  'https://pngimg.com/uploads/badger/badger_PNG45.png',
  'http://www.pngall.com/wp-content/uploads/2016/06/Killer-Whale.png'
];

listZip('animal-pics', 'animal', myList);
// will download a zip file named animals-pics.zip that contain files named 0-animal.png, 1-animal.png, 2-animal.png

Dependencies

  • file-saver
  • jszip
  • jszip-utils

Package Sidebar

Install

npm i list-to-zip

Weekly Downloads

13

Version

0.1.0

License

MIT

Unpacked Size

3.14 kB

Total Files

4

Last publish

Collaborators

  • or-yam