Html to docx related issues

  node.js, question

I want to save the response page from the server to the docx document with style.

http.get("http://www.baidu.com",function(res){
 let a="";
 res.on('data',function(data){
 A plus =data;
 });
 res.on("end",function(){
 
 Save the response data into the document and parse the html
 
 })
 })

https://github.com/evidenceprime/html-docx-js

This may be what you want, study it yourself, sometimes google is actually very useful and baidu is enough.