Skip to content
This repository has been archived by the owner on Apr 10, 2020. It is now read-only.

Latest commit

 

History

History
25 lines (19 loc) · 305 Bytes

README.md

File metadata and controls

25 lines (19 loc) · 305 Bytes

#Install package

Run cmd with

npm i word2pdf

or

yarn add word2pdf

#Use

Example

const word2pdf = require('word2pdf');
const fs = require('fs');

const convert = async () => {
	const data = await word2pdf('test.docx')
	fs.writeFileSync('test.pdf', data);
}