{
  "name": "ppu-pdf",
  "version": "6.1.0",
  "description": "Easily extract text from digital PDF files with coordinate and font size included, and optionally group text by lines or render scanned pdf to canvas/png.",
  "keywords": [
    "pdf-reader",
    "text-extraction",
    "pdf-rag",
    "bbox",
    "pdf",
    "pdf-typescript",
    "bun",
    "pdf-digital",
    "pdf-scan",
    "pdf-canvas",
    "pdfjs",
    "mupdf",
    "mupdfjs",
    "ocr",
    "web",
    "browser"
  ],
  "author": "snowfluke",
  "license": "MIT",
  "type": "module",
  "main": "./index.js",
  "types": "./index.d.ts",
  "exports": {
    ".": {
      "types": "./index.d.ts",
      "default": "./index.js"
    },
    "./web": {
      "types": "./web/index.d.ts",
      "default": "./web/index.js"
    }
  },
  "scripts": {
    "task": "bun scripts/task.ts",
    "build:test": "bun task build && bun test",
    "build:publish": "bun task build && bun task report-size && bun task publish",
    "compile:binary": "bun build --production ./src/index.ts --compile --outfile ./dist/ppu-pdf-bin",
    "compile:wasm": "cp ./node_modules/mupdf/dist/mupdf-wasm.wasm dist/",
    "compile": "bun compile:binary && bun compile:wasm",
    "run:binary": "./dist/ppu-pdf-bin",
    "lint": "prettier --check ./src",
    "lint:fix": "prettier --write ./src",
    "demo": "bunx -y serve -l 3331 ."
  },
  "devDependencies": {
    "@types/bun": "latest",
    "@types/uglify-js": "latest",
    "mitata": "latest",
    "ppu-paddle-ocr": "^4.0.2",
    "prettier": "^3.8.1",
    "tsx": "latest",
    "typescript": "latest",
    "uglify-js": ">=2.4.24"
  },
  "repository": {
    "type": "git",
    "url": "https://github.com/PT-Perkasa-Pilar-Utama/ppu-pdf.git"
  },
  "dependencies": {
    "@napi-rs/canvas": "^0.1.69",
    "@toon-format/toon": "^1.0.0",
    "mupdf": "^1.26.2",
    "pdfjs-dist": "4.9.155"
  }
}
