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.
Files changed (42) hide show
  1. package/dist/index.d.ts +1 -1
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +8 -7
  4. package/dist/index.js.map +1 -1
  5. package/dist/parsers/docx-parser.d.ts.map +1 -1
  6. package/dist/parsers/docx-parser.js +15 -19
  7. package/dist/parsers/docx-parser.js.map +1 -1
  8. package/dist/parsers/hwp-parser.js +165 -156
  9. package/dist/parsers/hwp-parser.js.map +1 -1
  10. package/dist/parsers/pdf-parser.js +1 -1
  11. package/dist/parsers/pdf-parser.js.map +1 -1
  12. package/dist/parsers/pptx-parser.d.ts.map +1 -1
  13. package/dist/parsers/pptx-parser.js +9 -9
  14. package/dist/parsers/pptx-parser.js.map +1 -1
  15. package/dist/parsers/xlsx-parser.d.ts +1 -1
  16. package/dist/parsers/xlsx-parser.d.ts.map +1 -1
  17. package/dist/parsers/xlsx-parser.js +6 -6
  18. package/dist/parsers/xlsx-parser.js.map +1 -1
  19. package/dist/utils/browser-polyfills.d.ts +5 -5
  20. package/dist/utils/browser-polyfills.d.ts.map +1 -1
  21. package/dist/utils/browser-polyfills.js +4 -4
  22. package/dist/utils/browser-polyfills.js.map +1 -1
  23. package/dist/utils/chart-extractor.d.ts.map +1 -1
  24. package/dist/utils/chart-extractor.js +10 -10
  25. package/dist/utils/chart-extractor.js.map +1 -1
  26. package/dist/utils/image-extractor.js +5 -5
  27. package/dist/utils/image-extractor.js.map +1 -1
  28. package/dist/utils/layout-parser.d.ts.map +1 -1
  29. package/dist/utils/layout-parser.js +15 -16
  30. package/dist/utils/layout-parser.js.map +1 -1
  31. package/dist/utils/libreoffice-detector.d.ts.map +1 -1
  32. package/dist/utils/libreoffice-detector.js +3 -2
  33. package/dist/utils/libreoffice-detector.js.map +1 -1
  34. package/dist/utils/pdf-extractor.d.ts +1 -1
  35. package/dist/utils/pdf-extractor.d.ts.map +1 -1
  36. package/dist/utils/pdf-extractor.js +15 -17
  37. package/dist/utils/pdf-extractor.js.map +1 -1
  38. package/dist/utils/pptx-visual-parser.d.ts +13 -13
  39. package/dist/utils/pptx-visual-parser.d.ts.map +1 -1
  40. package/dist/utils/pptx-visual-parser.js +14 -15
  41. package/dist/utils/pptx-visual-parser.js.map +1 -1
  42. package/package.json +89 -79
package/package.json CHANGED
@@ -1,79 +1,89 @@
1
- {
2
- "name": "file2md",
3
- "version": "1.2.4",
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
- "dependencies": {
39
- "fast-xml-parser": "^4.3.2",
40
- "file-type": "^16.5.4",
41
- "hwp.js": "^0.0.3",
42
- "jsdom": "^23.0.0",
43
- "jszip": "^3.10.1",
44
- "pdf-parse": "^1.1.1",
45
- "pdf2pic": "^2.1.4",
46
- "xml2js": "^0.6.2"
47
- },
48
- "engines": {
49
- "node": ">=18.0.0"
50
- },
51
- "devDependencies": {
52
- "@types/jest": "^29.5.0",
53
- "@types/jszip": "^3.4.1",
54
- "@types/node": "^20.0.0",
55
- "@types/pdf-parse": "^1.1.5",
56
- "@types/xml2js": "^0.4.14",
57
- "@types/jsdom": "^21.1.0",
58
- "@typescript-eslint/eslint-plugin": "^6.0.0",
59
- "@typescript-eslint/parser": "^6.0.0",
60
- "eslint": "^8.50.0",
61
- "jest": "^29.7.0",
62
- "jest-image-snapshot": "^6.2.0",
63
- "rimraf": "^5.0.0",
64
- "ts-jest": "^29.1.0",
65
- "ts-node": "^10.9.0",
66
- "typescript": "^5.3.0"
67
- },
68
- "exports": {
69
- ".": {
70
- "import": "./dist/index.js",
71
- "require": "./dist/index.js",
72
- "types": "./dist/index.d.ts"
73
- }
74
- },
75
- "files": [
76
- "dist",
77
- "README.md"
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
+ }