html-to-docx-nodejs

1.0.0 • Public • Published

html-to-word-nodejs

该依赖包可使用nodeJS将html转成word文档。

使用方式

  1. 安装依赖

cnpm i html-to-word-nodejs

  1. 示例
var HtmlDocx = require('html-to-word-nodejs');
var htmldemo='<h1>测试</h1>'
var options={
    content:htmldemo,
    docname:'demo',
    path:'/OutDir'
}

//参数说明
//options.content   html字符串
//options.docname   输出的docx文档名
//options.path      输出的docx路径

HtmlDocx.todoc(htmldemo,options)

Readme

Keywords

Package Sidebar

Install

npm i html-to-docx-nodejs

Weekly Downloads

0

Version

1.0.0

License

ISC

Unpacked Size

4.43 kB

Total Files

3

Last publish

Collaborators

  • ahkin