{ "name": "pdf-parse", "version": "2.4.5", "type": "module", "main": "dist/pdf-parse/cjs/index.cjs", "module": "dist/pdf-parse/esm/index.js", "types": "dist/pdf-parse/cjs/index.d.cts", "exports": { ".": { "browser": { "types": "./dist/pdf-parse/web/pdf-parse.es.d.ts", "default": "./dist/pdf-parse/web/pdf-parse.es.js" }, "import": { "types": "./dist/pdf-parse/esm/index.d.ts", "default": "./dist/pdf-parse/esm/index.js" }, "require": { "types": "./dist/pdf-parse/cjs/index.d.cts", "default": "./dist/pdf-parse/cjs/index.cjs" }, "default": { "types": "./dist/pdf-parse/cjs/index.d.cts", "default": "./dist/pdf-parse/cjs/index.cjs" } }, "./worker": { "import": { "types": "./dist/worker/esm/index.d.ts", "default": "./dist/worker/esm/index.js" }, "require": { "types": "./dist/worker/cjs/index.d.cts", "default": "./dist/worker/cjs/index.cjs" }, "default": { "types": "./dist/worker/cjs/index.d.cts", "default": "./dist/worker/cjs/index.cjs" } }, "./node": { "import": { "types": "./dist/node/esm/index.d.ts", "default": "./dist/node/esm/index.js" }, "require": { "types": "./dist/node/cjs/index.d.cts", "default": "./dist/node/cjs/index.cjs" }, "default": { "types": "./dist/node/cjs/index.d.cts", "default": "./dist/node/cjs/index.cjs" } } }, "bin": { "pdf-parse": "bin/cli.mjs" }, "description": "Pure TypeScript, cross-platform module for extracting text, images, and tabular data from PDFs. Run directly in your browser or in Node!", "homepage": "https://mehmet-kozan.github.io/pdf-parse/", "bugs": { "url": "https://github.com/mehmet-kozan/pdf-parse/issues" }, "keywords": [ "pdf", "pdf-parser", "pdf-parse", "pdf.js", "pdfjs", "pdfjs-dist", "pdf2text", "pdf2json", "pdf2image", "pdf2pic", "pdf-to-text", "pdf-to-image", "pdf-viewer", "pdf-table", "pdf-tools", "pdf-utils", "pdf-screenshot", "pdf-thumbnail" ], "repository": { "type": "git", "url": "git+https://github.com/mehmet-kozan/pdf-parse.git" }, "license": "Apache-2.0", "author": "Mehmet Kozan", "files": [ "dist/", "bin/" ], "scripts": { "build": "npm run clean && npm run build:worker && npm run build:ts && npm run build:cjs && npm run build:web && npm run build:node", "build:ts": "tsc && api-extractor run --local -c configs/pdf-parse.api.jsonc", "build:cjs": "vite build --config vite.config.cjs.ts", "build:web": "vite build", "build:worker": "tsc --project tsconfig.worker.json && api-extractor run --local -c configs/worker.api.jsonc && node scripts/build-worker.mjs", "build:node": "npm run build:node:ts && npm run build:node:bundle", "build:node:ts": "tsc --project tsconfig.node.json && api-extractor run --local -c configs/node.api.jsonc", "build:node:bundle": "esbuild src/node/index.ts --bundle --platform=node --format=cjs --target=node16 --outfile=dist/node/cjs/index.cjs --sourcemap", "clean": "npm run clean:build && npm run clean:report && npm run clean:test && npm run clean:test:i", "clean:build": "rimraf dist bin/worker/worker_source.js bin/worker/worker_source.cjs", "clean:report": "rimraf reports/test reports/coverage reports/benchmark reports/api reports/demo/dist-web ", "clean:test": "rimraf --glob tests/**/*.txt tests/**/imgs tests/**/*_images temp", "clean:test:i": "rimraf --glob *.tgz tests/**/node_modules tests/**/package-lock.json tests/**/dist", "test": "vitest run --reporter=default", "test:p": "vitest run --config vitest.config.package.ts", "test:i": "node scripts/integration.test.mjs", "test:u": "node --test-reporter=dot --test tests/unsupported/*.test.cjs && node --test-reporter=dot --test tests/unsupported/*.test.mjs", "test:e": "node scripts/example.test.mjs", "test:all": "npm run test && npm run test:p && npm run test:i && npm run test:u && npm run test:e", "test:ui": "vitest --ui --coverage", "test:watch": "vitest", "coverage": "vitest run --coverage", "bench": "npm run bench:install && vitest bench --run", "bench:install": "npm install --no-save pdf2json@latest", "report": "npm run report:build && vite preview --outDir reports", "report:build": "npm run build && npm run coverage && npm run bench && npn run typedoc:build", "typedoc:build": "typedoc --options configs/typedoc.mjs --out reports/typedoc", "lint": "biome lint .", "format": "biome format --write .", "format:all": "biome check --write .", "format:check": "biome check .", "prepare": "npm run build", "pack": "npm outdated && npm pack --dry-run" }, "dependencies": { "@napi-rs/canvas": "0.1.80", "pdfjs-dist": "5.4.296" }, "devDependencies": { "vite": "^7.1.5", "vitest": "^3.2.4", "typescript": "^5.9.3", "tsx": "^4.20.6", "@microsoft/api-extractor": "^7.53.1", "@biomejs/biome": "^2.2.6", "@types/node": "^24.7.2", "@vitest/coverage-v8": "^3.2.4", "@vitest/ui": "^3.2.4", "typedoc": "^0.28.14", "esbuild": "^0.25.11", "rimraf": "^6.0.1", "terser": "^5.44.0" }, "publishConfig": { "access": "public", "provenance": true }, "engines": { "node": ">=20.16.0 <21 || >=22.3.0" }, "jsdelivr": "./dist/pdf-parse/web/pdf-parse.es.js", "unpkg": "./dist/pdf-parse/web/pdf-parse.umd.js", "funding": { "type": "github", "url": "https://github.com/sponsors/mehmet-kozan" } }