8000 GitHub - belmix/nodejs-html-docx: A simple library to convert html files to MS Word
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

A simple library to convert html files to MS Word

Notifications You must be signed in to change notification settings

belmix/nodejs-html-docx

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nodejs-html-docx

nodejs-html-docx is a simple tool to create MS Word (.Docx) file with Header and Pagination in Footer. That too with Promise. Yayy!

Installation

npm i nodejs-html-docx

Usage

import {createDoc} from 'nodejs-html-docx'


// bodyMarkup - replaces the content in the body of the document
// headerTitle - Text you want to show in header. Usually a document title
// outputFile - Name you want for the output file

createDoc(bodyMarkup, {headerTitle: 'Report', outputFile: 'Report'}).then(path => {
    // you get the path for the generated file here
    console.log('Conversion complete at => ', path)
}).catch(err => {
    // You know this
	console.log(err)
})

About

A simple library to convert html files to MS Word

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%
0