Rename demo

This commit is contained in:
Dolan
2018-10-05 00:08:14 +01:00
parent 048ae6a58c
commit 733775d3b9

View File

@ -16,7 +16,7 @@ fs.readFile(filePath, (err, data) => {
} as any; } as any;
const doc = new Document(undefined, sectionProps, { const doc = new Document(undefined, sectionProps, {
template: templateDocument template: templateDocument,
}); });
const paragraph = new Paragraph("Hello World"); const paragraph = new Paragraph("Hello World");
doc.addParagraph(paragraph); doc.addParagraph(paragraph);
@ -26,5 +26,4 @@ fs.readFile(filePath, (err, data) => {
fs.writeFileSync("My Document.docx", buffer); fs.writeFileSync("My Document.docx", buffer);
}); });
}); });
}); });