w-docx2html
v1.0.2
Published
A tool for docx2html.
Maintainers
Readme
w-docx2html
A tool for docx2html.
Documentation
To view documentation or get support, visit docs.
Core
w-docx2htmlis based on thewin32cominpython, and only run inWindows.
Installation
Using npm(ES6 module):
npm i w-docx2htmlExample:
Link: [dev source code]
import w from 'wsemi'
import WDocx2html from './src/WDocx2html.mjs'
//import WDocx2html from 'w-docx2html/src/WDocx2html.mjs'
//import WDocx2html from 'w-docx2html'
async function test() {
let fpIn = `./test/docin.docx`
let fpOut = `./test/docout.html`
let opt = {
execFontGrow: 1,
}
let r = await WDocx2html(fpIn, fpOut, opt)
console.log(r)
// => ok
w.fsDeleteFile(fpOut)
}
test()
.catch((err) => {
console.log('catch', err)
})