file2md 1.2.4 → 1.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -7
- package/dist/index.js.map +1 -1
- package/dist/parsers/docx-parser.d.ts.map +1 -1
- package/dist/parsers/docx-parser.js +15 -19
- package/dist/parsers/docx-parser.js.map +1 -1
- package/dist/parsers/hwp-parser.js +165 -156
- package/dist/parsers/hwp-parser.js.map +1 -1
- package/dist/parsers/pdf-parser.js +1 -1
- package/dist/parsers/pdf-parser.js.map +1 -1
- package/dist/parsers/pptx-parser.d.ts.map +1 -1
- package/dist/parsers/pptx-parser.js +9 -9
- package/dist/parsers/pptx-parser.js.map +1 -1
- package/dist/parsers/xlsx-parser.d.ts +1 -1
- package/dist/parsers/xlsx-parser.d.ts.map +1 -1
- package/dist/parsers/xlsx-parser.js +6 -6
- package/dist/parsers/xlsx-parser.js.map +1 -1
- package/dist/utils/browser-polyfills.d.ts +5 -5
- package/dist/utils/browser-polyfills.d.ts.map +1 -1
- package/dist/utils/browser-polyfills.js +4 -4
- package/dist/utils/browser-polyfills.js.map +1 -1
- package/dist/utils/chart-extractor.d.ts.map +1 -1
- package/dist/utils/chart-extractor.js +10 -10
- package/dist/utils/chart-extractor.js.map +1 -1
- package/dist/utils/image-extractor.js +5 -5
- package/dist/utils/image-extractor.js.map +1 -1
- package/dist/utils/layout-parser.d.ts.map +1 -1
- package/dist/utils/layout-parser.js +15 -16
- package/dist/utils/layout-parser.js.map +1 -1
- package/dist/utils/libreoffice-detector.d.ts.map +1 -1
- package/dist/utils/libreoffice-detector.js +3 -2
- package/dist/utils/libreoffice-detector.js.map +1 -1
- package/dist/utils/pdf-extractor.d.ts +1 -1
- package/dist/utils/pdf-extractor.d.ts.map +1 -1
- package/dist/utils/pdf-extractor.js +15 -17
- package/dist/utils/pdf-extractor.js.map +1 -1
- package/dist/utils/pptx-visual-parser.d.ts +13 -13
- package/dist/utils/pptx-visual-parser.d.ts.map +1 -1
- package/dist/utils/pptx-visual-parser.js +14 -15
- package/dist/utils/pptx-visual-parser.js.map +1 -1
- package/package.json +89 -79
package/package.json
CHANGED
|
@@ -1,79 +1,89 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "file2md",
|
|
3
|
-
"version": "1.2.
|
|
4
|
-
"description": "A TypeScript library for converting various document types (PDF, DOCX, XLSX, PPTX, HWP, HWPX) into Markdown with image and layout preservation",
|
|
5
|
-
"main": "dist/index.js",
|
|
6
|
-
"types": "dist/index.d.ts",
|
|
7
|
-
"type": "module",
|
|
8
|
-
"scripts": {
|
|
9
|
-
"build": "tsc -p tsconfig.build.json",
|
|
10
|
-
"dev": "ts-node --esm src/index.ts",
|
|
11
|
-
"test": "jest",
|
|
12
|
-
"test:watch": "jest --watch",
|
|
13
|
-
"test:coverage": "jest --coverage",
|
|
14
|
-
"lint": "eslint src/**/*.ts",
|
|
15
|
-
"lint:fix": "eslint src/**/*.ts --fix",
|
|
16
|
-
"clean": "rimraf dist",
|
|
17
|
-
"prepublishOnly": "npm run clean && npm run build && npm test",
|
|
18
|
-
"typecheck": "tsc --noEmit"
|
|
19
|
-
},
|
|
20
|
-
"keywords": [
|
|
21
|
-
"markdown",
|
|
22
|
-
"converter",
|
|
23
|
-
"pdf",
|
|
24
|
-
"docx",
|
|
25
|
-
"xlsx",
|
|
26
|
-
"pptx",
|
|
27
|
-
"hwp",
|
|
28
|
-
"hwpx",
|
|
29
|
-
"korean",
|
|
30
|
-
"hangul",
|
|
31
|
-
"document",
|
|
32
|
-
"typescript",
|
|
33
|
-
"layout-preservation",
|
|
34
|
-
"image-extraction"
|
|
35
|
-
],
|
|
36
|
-
"author": "",
|
|
37
|
-
"license": "MIT",
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
"
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
"
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
"
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
"eslint": "^
|
|
61
|
-
"jest": "^29.
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
"
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
"
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
"
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "file2md",
|
|
3
|
+
"version": "1.2.6",
|
|
4
|
+
"description": "A TypeScript library for converting various document types (PDF, DOCX, XLSX, PPTX, HWP, HWPX) into Markdown with image and layout preservation",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"type": "module",
|
|
8
|
+
"scripts": {
|
|
9
|
+
"build": "tsc -p tsconfig.build.json",
|
|
10
|
+
"dev": "ts-node --esm src/index.ts",
|
|
11
|
+
"test": "jest",
|
|
12
|
+
"test:watch": "jest --watch",
|
|
13
|
+
"test:coverage": "jest --coverage",
|
|
14
|
+
"lint": "eslint src/**/*.ts",
|
|
15
|
+
"lint:fix": "eslint src/**/*.ts --fix",
|
|
16
|
+
"clean": "rimraf dist",
|
|
17
|
+
"prepublishOnly": "npm run clean && npm run build && npm test",
|
|
18
|
+
"typecheck": "tsc --noEmit"
|
|
19
|
+
},
|
|
20
|
+
"keywords": [
|
|
21
|
+
"markdown",
|
|
22
|
+
"converter",
|
|
23
|
+
"pdf",
|
|
24
|
+
"docx",
|
|
25
|
+
"xlsx",
|
|
26
|
+
"pptx",
|
|
27
|
+
"hwp",
|
|
28
|
+
"hwpx",
|
|
29
|
+
"korean",
|
|
30
|
+
"hangul",
|
|
31
|
+
"document",
|
|
32
|
+
"typescript",
|
|
33
|
+
"layout-preservation",
|
|
34
|
+
"image-extraction"
|
|
35
|
+
],
|
|
36
|
+
"author": "Ricky",
|
|
37
|
+
"license": "MIT",
|
|
38
|
+
"repository": {
|
|
39
|
+
"type": "git",
|
|
40
|
+
"url": "https://github.com/ricky-clevi/file2md.git"
|
|
41
|
+
},
|
|
42
|
+
"bugs": {
|
|
43
|
+
"url": "https://github.com/ricky-clevi/file2md/issues"
|
|
44
|
+
},
|
|
45
|
+
"homepage": "https://github.com/ricky-clevi/file2md#readme",
|
|
46
|
+
"dependencies": {
|
|
47
|
+
"fast-xml-parser": "^4.3.2",
|
|
48
|
+
"file-type": "^16.5.4",
|
|
49
|
+
"hwp.js": "^0.0.3",
|
|
50
|
+
"jsdom": "^23.0.0",
|
|
51
|
+
"jszip": "^3.10.1",
|
|
52
|
+
"pdf-parse": "^1.1.1",
|
|
53
|
+
"pdf2pic": "^2.1.4",
|
|
54
|
+
"xml2js": "^0.6.2"
|
|
55
|
+
},
|
|
56
|
+
"engines": {
|
|
57
|
+
"node": ">=18.0.0"
|
|
58
|
+
},
|
|
59
|
+
"devDependencies": {
|
|
60
|
+
"@eslint/js": "^9.32.0",
|
|
61
|
+
"@types/jest": "^29.5.0",
|
|
62
|
+
"@types/jsdom": "^21.1.0",
|
|
63
|
+
"@types/jszip": "^3.4.1",
|
|
64
|
+
"@types/node": "^20.0.0",
|
|
65
|
+
"@types/pdf-parse": "^1.1.5",
|
|
66
|
+
"@types/xml2js": "^0.4.14",
|
|
67
|
+
"@typescript-eslint/eslint-plugin": "^8.39.0",
|
|
68
|
+
"@typescript-eslint/parser": "^8.39.0",
|
|
69
|
+
"eslint": "^9.32.0",
|
|
70
|
+
"jest": "^29.7.0",
|
|
71
|
+
"jest-image-snapshot": "^6.2.0",
|
|
72
|
+
"rimraf": "^5.0.0",
|
|
73
|
+
"ts-jest": "^29.1.0",
|
|
74
|
+
"ts-node": "^10.9.0",
|
|
75
|
+
"typescript": "^5.3.0",
|
|
76
|
+
"typescript-eslint": "^8.39.0"
|
|
77
|
+
},
|
|
78
|
+
"exports": {
|
|
79
|
+
".": {
|
|
80
|
+
"import": "./dist/index.js",
|
|
81
|
+
"require": "./dist/index.js",
|
|
82
|
+
"types": "./dist/index.d.ts"
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
"files": [
|
|
86
|
+
"dist",
|
|
87
|
+
"README.md"
|
|
88
|
+
]
|
|
89
|
+
}
|