SilentCicero / meteor-jszip

jszip bundled for client-side Meteor

Home Page:https://atmospherejs.com/silentcicero/jszip

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

jszip

A Zip package for Meteor. Create, read and edit .zip files on the client side.

This package packs [JSZip][1] and adds a saveAs method to the zip instance for convenience.

##Install

meteor add silentcicero:jszip

##Documnentation

Full documentation of the API at the original package [JSZip][2].

##Usage

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({type:"blob"});

// see FileSaver.js
saveAs(content, "example.zip");

About

jszip bundled for client-side Meteor

https://atmospherejs.com/silentcicero/jszip

License:MIT License


Languages

Language:JavaScript 100.0%