We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 99cd6fc commit 630150eCopy full SHA for 630150e
src/extractors/docx.ts
@@ -1,7 +1,7 @@
1
import xpath from "xpath";
2
import { DOMParser } from "@xmldom/xmldom";
3
import yauzl from "yauzl";
4
-import { yauzlError, getTextFromZipFile, cleanseText } from "../utils";
+import { yauzlError, getTextFromZipFile, cleanseText } from "../utils.js";
5
6
const includeRegex = /.xml$/;
7
const excludeRegex = /^(word\/media\/|word\/_rels\/)/;
src/extractors/text.ts
@@ -2,7 +2,7 @@ import fs from "fs";
import path from "path";
import iconv from "iconv-lite";
import jschardet from "jschardet";
-import { cleanseText } from "../utils";
+import { cleanseText } from "../utils.js";
function extractText(filePath: string, options: any): Promise<string | Error> {
8
return new Promise((resolve, reject) => {
0 commit comments