How to use html-docx-js
in node.js
.
I have refered the npm site (https://www.npmjs.com/package/html-docx-js) for this. Below is the code
var converted = htmlDocx.asBlob(content);
saveAs(converted, 'test.docx');
But here is the problem, the saveAs
function is missing in the tutorial.
I have downloaded filesaver.js
on the client side i Iave implemented this and it works fine. But I want complete code in node.js
running which it will convert my html content and will download a word file in client machine.
Looking forward for some help. Regards,
Bikram Nayak.