Files
docx-js/scripts/schema-validator/index.ts

11 lines
209 B
TypeScript
Raw Normal View History

2021-09-29 23:47:33 +01:00
import * as unzipper from "unzipper";
const main = async () => {
2021-09-30 00:19:03 +01:00
const zip = await unzipper.Open.file("My Document.docx");
2021-09-29 23:47:33 +01:00
await zip.extract({
2021-09-30 00:19:03 +01:00
path: "build/extracted-doc",
2021-09-29 23:47:33 +01:00
});
};
main();