Skip to content

npmcomponent/chemzqm-jszip

Repository files navigation

This repository is a mirror of the component module chemzqm/jszip. It has been modified to work with NPM+Browserify. You can install it using the command npm install npmcomponent/chemzqm-jszip. Please do not open issues or send pull requests against this repo. If you have issues with this repo, report it to npmcomponent.

jszip

A library for creating, reading and editing .zip files with Javascript, with a lovely and simple API.

See http://stuartk.com/jszip for all the documentation

Modified for use as a component module.

Installation

Install with component(1):

$ component install chemzqm/jszip

Usage

var JSZip = require('jszip');
var zip = new JSZip();

zip.file("Hello.txt", "Hello World\n");

var img = zip.folder("images");
img.file("smile.gif", imgData, {base64: true});

var content = zip.generate();

location.href = "data:application/zip;base64," + content;
/*
Results in a zip containing
Hello.txt
images/
    smile.gif
*/

License

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published