Update README.md: Fix NodeJS example (#736)

main
Truong Hoang Dung 2024-07-07 20:10:36 +07:00 committed by GitHub
parent 2005b0a382
commit f5d1fa5740
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ const { buffer } = new w.Docx()
.addParagraph(new w.Paragraph().addRun(new w.Run().addText("Hello world!!"))) .addParagraph(new w.Paragraph().addRun(new w.Run().addText("Hello world!!")))
.build(); .build();
writeFileSync("hello.docx", buffer); writeFileSync("hello.docx", Buffer.from(buffer));
``` ```
### More examples ### More examples