Files
docx-js/scripts/extract-document.ts
2021-09-30 00:36:28 +01:00

11 lines
209 B
TypeScript

import * as unzipper from "unzipper";
const main = async () => {
const zip = await unzipper.Open.file("My Document.docx");
await zip.extract({
path: "build/extracted-doc",
});
};
main();