{
  "name": "unpdf",
  "type": "module",
  "version": "1.8.0",
  "packageManager": "pnpm@11.17.0",
  "description": "PDF extraction and rendering across all JavaScript runtimes",
  "author": "Johann Schopplich <hello@johannschopplich.com>",
  "license": "MIT",
  "homepage": "https://github.com/unjs/unpdf#readme",
  "repository": {
    "type": "git",
    "url": "git+https://github.com/unjs/unpdf.git"
  },
  "bugs": {
    "url": "https://github.com/unjs/unpdf/issues"
  },
  "keywords": [
    "cloudflare",
    "edge",
    "extract",
    "parse",
    "pdf",
    "pdf.js",
    "pdfjs-dist",
    "rendering",
    "serverless",
    "text-extraction",
    "workers"
  ],
  "sideEffects": false,
  "exports": {
    ".": {
      "import": {
        "types": "./dist/index.d.mts",
        "default": "./dist/index.mjs"
      },
      "require": {
        "types": "./dist/index.d.cts",
        "default": "./dist/index.cjs"
      }
    },
    "./pdfjs": {
      "types": "./dist/pdfjs.d.mts",
      "import": "./dist/pdfjs.mjs"
    }
  },
  "main": "./dist/index.cjs",
  "module": "./dist/index.mjs",
  "types": "./dist/index.d.cts",
  "typesVersions": {
    "*": {
      "*": [
        "*",
        "dist/*"
      ]
    }
  },
  "files": [
    "dist"
  ],
  "engines": {
    "node": ">=22"
  },
  "scripts": {
    "build": "tsdown && node scripts/post-build.mjs",
    "build:pdfjs": "rolldown --config pdfjs.rolldown.config.ts && cp -R node_modules/pdfjs-dist/types dist",
    "dev": "tsdown --watch",
    "lint": "eslint .",
    "lint:fix": "eslint . --fix",
    "release": "bumpp",
    "test": "vitest",
    "test:attw": "attw --pack --ignore-rules cjs-resolves-to-esm",
    "test:types": "tsc --noEmit",
    "test:types:dist": "tsc -p test/types/tsconfig.json"
  },
  "peerDependencies": {
    "@napi-rs/canvas": "^0.1.69 || ^1.0.0"
  },
  "peerDependenciesMeta": {
    "@napi-rs/canvas": {
      "optional": true
    }
  },
  "devDependencies": {
    "@antfu/eslint-config": "^9.2.0",
    "@arethetypeswrong/cli": "^0.18.5",
    "@napi-rs/canvas": "^1.0.2",
    "@types/node": "^26.1.1",
    "bumpp": "^12.0.0",
    "eslint": "^10.7.0",
    "pdfjs-dist": "~6.1.200",
    "rolldown": "^1.2.0",
    "tinyglobby": "^0.2.17",
    "tsdown": "^0.22.14",
    "typescript": "^6.0.3",
    "vitest": "^4.1.10"
  }
}
