UNPKG

html-docx-js

Version:

Converts HTML documents to DOCX in the browser

10 lines (8 loc) 220 B
JSZip = require 'jszip' internal = require './internal' fs = require 'fs' module.exports = asBlob: (html, options) -> zip = new JSZip() internal.addFiles(zip, html, options) internal.generateDocument(zip)