Skip to content

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

License

Notifications You must be signed in to change notification settings

webiya/list-to-zip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published