-
Notifications
You must be signed in to change notification settings - Fork 390
Expand file tree
/
Copy pathpackage.json
More file actions
124 lines (124 loc) · 4.3 KB
/
package.json
File metadata and controls
124 lines (124 loc) · 4.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
{
"name": "pdf2json",
"version": "4.0.2",
"description": "PDF file parser that converts PDF binaries to JSON and text, powered by porting a fork of PDF.JS to Node.js",
"keywords": [
"pdf",
"pdf parser",
"pdf2json",
"convert pdf to json",
"convert pdf form to json",
"server side PDF parser",
"port pdf.js to node.js",
"PDF to text",
"PDF text extractor",
"PDF binary to text",
"PDF form extractor",
"command line utility to parse pdf to json",
"JSON",
"javascript",
"PDF canvas"
],
"author": {
"name": "Modesty Zhang",
"email": "modestyz@hotmail.com",
"url": "https://www.google.com/search?q=modesty+zhang+site%3Acodeproject.com"
},
"homepage": "https://github.com/modesty/pdf2json",
"repository": {
"type": "git",
"url": "git://github.com/modesty/pdf2json.git"
},
"main": "./dist/pdfparser.cjs",
"module": "./dist/pdfparser.js",
"typings": "./dist/pdfparser.d.ts",
"scripts": {
"test:jest": "jest --config ./jest.config.json --detectOpenHandles",
"test": "npm run test:jest && npm run parse-r && npm run parse-fd && npm run test:deno && npm run test:bun",
"test:forms": "cd ./test && sh p2j.forms.sh",
"test:misc": "cd ./test && sh p2j.one.sh misc . \"Expected: 16 success, 6 fail exception with stack trace\" ",
"parse": "./bin/pdf2json.js -f ./test/pdf/fd/form/F1040.pdf -o ./test/target/fd/form",
"parse-s": "./bin/pdf2json.js -f ./test/pdf/fd/form/F1040.pdf -o ./test/target/fd/form -s",
"parse-t": "./bin/pdf2json.js -f ./test/pdf/fd/form/F1040.pdf -o ./test/target/fd/form -s -t",
"parse-c": "./bin/pdf2json.js -f ./test/pdf/fd/form/F1040.pdf -o ./test/target/fd/form -s -t -c",
"parse-m": "./bin/pdf2json.js -f ./test/pdf/fd/form/F1040.pdf -o ./test/target/fd/form -s -t -c -m",
"parse-r": "./bin/pdf2json.js -f ./test/pdf/fd/form/F1040.pdf -o ./test/target/fd/form -t -c -m -r",
"parse-fd": "./bin/pdf2json.js -f ./test/pdf/fd/form/ -o ./test/target/fd/form -t -c -m -r",
"parse-tb": "./bin/pdf2json.js -f ./test/pdf/misc/i242_testingWithTable.pdf -o ./test/target/misc",
"parse-tc": "./bin/pdf2json.js -f ./test/pdf/misc/i293_pdfpac.pdf -o ./test/target/misc",
"parse-rectFix": "./bin/pdf2json.js -f ./test/pdf/misc/pr298_rect_fix_from_upstream.pdf -o ./test/target/misc",
"parse-e": "./bin/pdf2json.js -f ./test/pdf/misc/i418_precompilato_fake.pdf -o ./test/target/misc -c",
"build:rollup": "npx rollup -c ./rollup.config.js",
"build:bundle-pdfjs-base": "node rollup/bundle-pdfjs-base.js",
"build": "npm run build:bundle-pdfjs-base && npm run build:rollup",
"build:clean": "rm -rf node_modules && rm -f package-lock.json && npm i && npm run build",
"test:deno": "deno --allow-read --allow-write --allow-net --allow-env --no-check ./bin/pdf2json.js -f ./test/pdf/fd/form/ -o ./test/target/fd/form -t -c -m -r",
"test:bun": "bun ./bin/pdf2json.js -f ./test/pdf/fd/form/ -o ./test/target/fd/form -t -c -m -r"
},
"engines": {
"node": ">=20.18.0"
},
"devEngines": {
"packageManager": {
"name": "npm",
"version": ">=10.2.3"
}
},
"type": "module",
"bin": {
"pdf2json": "bin/pdf2json.js"
},
"dependencies": {},
"bundleDependencies": [],
"devDependencies": {
"@eslint/js": "^9.37.0",
"@rollup/plugin-commonjs": "^28.0.6",
"@rollup/plugin-eslint": "^9.1.0",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-node-resolve": "^16.0.2",
"@rollup/plugin-terser": "^0.4.4",
"@rollup/plugin-typescript": "^12.1.4",
"@types/node": "^24.7.2",
"@typescript-eslint/eslint-plugin": "^8.46.0",
"@typescript-eslint/parser": "^8.46.0",
"eslint": "^9.37.0",
"jest": "^30.2.0",
"rollup": "^4.52.4",
"tslib": "^2.6.2",
"typescript": "5.9.3"
},
"resolutions": {
"typescript": "5.9.3"
},
"maintainers": [
{
"name": "Modesty Zhang",
"email": "modestyz@hotmail.com",
"url": "https://www.google.com/search?q=modesty+zhang+site%3Acodeproject.com"
}
],
"contributors": [],
"bugs": {
"url": "http://github.com/modesty/pdf2json/issues"
},
"license": "Apache-2.0",
"readme": "https://github.com/modesty/pdf2json/blob/master/readme.md",
"exports": {
".": {
"types": "./dist/pdfparser.d.ts",
"import": "./dist/pdfparser.js",
"require": "./dist/pdfparser.cjs"
}
},
"publishConfig": {
"registry": "https://registry.npmjs.com/",
"access": "public"
},
"files": [
"bin/",
"dist/",
"package.json",
"readme.md",
"license.txt"
]
}