How to use the jszip.JSZip 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 owtf / owtf / owtf / webui / src / Report / Export.js View on Github external
function getDocxReportFromJSON(json, template) {
    let zip = new JSZip(templates[template]);
    let doc = new Docxtemplater();

    //set the templateVariables

    try {
        // render the document (replace all occurences of tags.
    } catch (error) {
        let e = {
            message: error.message,
            stack: error.stack,


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