UNPKG

@unionpdf/pdfium

Version:

Pdfium webassebmly for web platform

70 lines (69 loc) 2.04 kB
{ "name": "@unionpdf/pdfium", "version": "0.33.1", "private": false, "publishConfig": { "access": "public" }, "description": "Pdfium webassebmly for web platform", "source": "./src/index.ts", "main": "./dist/cjs/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "exports": { ".": { "import": "./dist/esm/index.js", "require": "./dist/cjs/index.js" }, "./pdfium.wasm": { "import": "./dist/esm/pdfium.a0e42955.wasm", "require": "./dist/cjs/pdfium.a0e42955.wasm" } }, "scripts": { "typecheck": "tsc --noEmit", "prebuild": "npm run clean", "build": "parcel build", "postbuild": "npm run copy-types", "clean": "rm -rf dist .parcel-cache", "purge": "rm -rf dist .parcel-cache node_modules", "copy-types": "cpy src/pdfium.d.ts dist/types/ --flat && cpy ./dist/types/* ./dist/cjs --flat && cpy ./dist/types/* ./dist/esm --flat", "prewasm": "node ./scripts/generate-exported-functions.js && node ./scripts/generate-exported-runtime-methods.js", "wasm": "make build && cpy ./docker/dist/pdfium.js ./src --flat && cpy ./docker/dist/pdfium.wasm ./src --flat", "build:all": "npm run wasm && npm run build", "test": "jest --passWithNoTests" }, "repository": { "type": "git", "url": "git+https://github.com/jichang/unionpdf.git" }, "keywords": [ "pdfium", "webassembly" ], "files": [ "dist/cjs", "dist/esm", "dist/types" ], "author": "Ji Chang", "license": "MIT", "bugs": { "url": "https://github.com/jichang/unionpdf/issues" }, "homepage": "https://github.com/jichang/unionpdf#readme", "devDependencies": { "@types/emscripten": "^1.40.0", "buffer": "^6.0.3", "comlink": "^4.4.2", "cpy-cli": "^5.0.0", "crypto-browserify": "^3.12.1", "jest": "^29.7.0", "os-browserify": "^0.3.0", "parcel": "2.13.3", "path-browserify": "^1.0.1", "process": "^0.11.10", "ts-jest": "^29.2.5", "typescript": "^5.7.3" } }