{
	"name": "pdf2json",
	"version": "4.1.0",
	"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",
	"types": "./dist/pdfparser.d.ts",
	"scripts": {
		"test:unit": "node --test --test-timeout=15000 \"test/_test_*.cjs\"",
		"test:coverage": "mkdir -p coverage && node --test --test-timeout=15000 --experimental-test-coverage --test-coverage-exclude=\"test/**\" --test-coverage-exclude=\"base/**\" --test-coverage-exclude=\"lib/pdfjs-code.js\" --test-reporter=spec --test-reporter=lcov --test-reporter-destination=stdout --test-reporter-destination=coverage/lcov.info \"test/_test_*.cjs\"",
		"test": "npm run test:unit && npm run parse-r && npm run parse-fd && npm run test:deno && npm run test:bun",
		"lint": "eslint .",
		"test:forms": "cd ./test && bash p2j.forms.sh",
		"test:misc": "cd ./test && bash p2j.one.sh misc .",
		"parse": "node ./bin/pdf2json.js -f ./test/pdf/fd/form/F1040.pdf -o ./test/target/fd/form",
		"parse-s": "node ./bin/pdf2json.js -f ./test/pdf/fd/form/F1040.pdf -o ./test/target/fd/form -s",
		"parse-t": "node ./bin/pdf2json.js -f ./test/pdf/fd/form/F1040.pdf -o ./test/target/fd/form -s -t",
		"parse-c": "node ./bin/pdf2json.js -f ./test/pdf/fd/form/F1040.pdf -o ./test/target/fd/form -s -t -c",
		"parse-m": "node ./bin/pdf2json.js -f ./test/pdf/fd/form/F1040.pdf -o ./test/target/fd/form -s -t -c -m",
		"parse-r": "node ./bin/pdf2json.js -f ./test/pdf/fd/form/F1040.pdf -o ./test/target/fd/form -t -c -m -r",
		"parse-fd": "node ./bin/pdf2json.js -f ./test/pdf/fd/form/ -o ./test/target/fd/form -t -c -m -r",
		"parse-tb": "node ./bin/pdf2json.js -f ./test/pdf/misc/i242_testingWithTable.pdf -o ./test/target/misc",
		"parse-tc": "node ./bin/pdf2json.js -f ./test/pdf/misc/i293_pdfpac.pdf -o ./test/target/misc",
		"parse-rectFix": "node ./bin/pdf2json.js -f ./test/pdf/misc/pr298_rect_fix_from_upstream.pdf -o ./test/target/misc",
		"parse-e": "node ./bin/pdf2json.js -f ./test/pdf/misc/i418_precompilato_fake.pdf -o ./test/target/misc -c",
		"build:rollup": "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": "unset npm_config_allow_scripts && npm ci && 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": ">=22.23.2"
	},
	"devEngines": {
		"packageManager": {
			"name": "npm",
			"version": ">=10.8.2"
		}
	},
	"type": "module",
	"bin": {
		"pdf2json": "bin/pdf2json.js"
	},
	"devDependencies": {
		"@eslint/js": "^10.0.1",
		"@rollup/plugin-json": "^6.1.0",
		"@rollup/plugin-terser": "^1.0.0",
		"@rollup/plugin-typescript": "^12.1.4",
		"@types/node": "^22.20.2",
		"eslint": "^10.0.2",
		"rollup": "^4.52.4",
		"tslib": "^2.8.1",
		"typescript": "5.9.3",
		"typescript-eslint": "^8.70.0"
	},
	"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": {
		".": {
			"import": {
				"types": "./dist/pdfparser.d.ts",
				"default": "./dist/pdfparser.js"
			},
			"require": {
				"types": "./dist/pdfparser.d.cts",
				"default": "./dist/pdfparser.cjs"
			}
		}
	},
	"publishConfig": {
		"registry": "https://registry.npmjs.org/",
		"access": "public"
	},
	"files": [
		"bin/",
		"dist/",
		"package.json",
		"readme.md",
		"license.txt"
	]
}
