UNPKG

html-docx-js

Version:

Converts HTML documents to DOCX in the browser

17 lines (12 loc) 293 B
var JSZip, fs, internal; JSZip = require('jszip'); internal = require('./internal'); fs = require('fs'); module.exports = { asBlob: function(html, options) { var zip; zip = new JSZip(); internal.addFiles(zip, html, options); return internal.generateDocument(zip); } };