How to use the jszip/dist/jszip.min function in jszip

To help you get started, we’ve selected a few jszip examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github rdkmaster / jigsaw / src / jigsaw / pc-components / graph / graph-download.directive.ts View on Github external
public _$download() {
        let zip = new JSZip();
        const base64Codes = this._getGraphBase64Codes();
        base64Codes.forEach(base64Code => {
            zip.file(`${base64Code.title}.png`, base64Code.base64, {base64: true});
        const jigsawGraphDownloadExportFileName = !!this.initData.jigsawGraphDownloadExportFileName.match(/(.+)\.(.+)/g) ?
            this.initData.jigsawGraphDownloadExportFileName : `${this.initData.jigsawGraphDownloadExportFileName}.zip`;
        zip.generateAsync({type: "blob"}).then(content => {
            FileSaver.saveAs(content, `${jigsawGraphDownloadExportFileName}`);


Create, read and edit .zip files with JavaScript

(MIT OR GPL-3.0-or-later)
Latest version published 1 year ago

Package Health Score

80 / 100
Full package analysis