Turn methods into "add()"

This commit is contained in:
Dolan
2019-06-25 23:17:56 +01:00
parent 3ef8f5311d
commit e2574ec23b
55 changed files with 253 additions and 262 deletions

View File

@ -21,7 +21,7 @@ fs.readFile(filePath, (err, data) => {
template: templateDocument,
});
const paragraph = new Paragraph("Hello World");
doc.addParagraph(paragraph);
doc.add(paragraph);
const packer = new Packer();
packer.toBuffer(doc).then((buffer) => {