UNPKG

@embedpdf/pdfium

Version:

PDFium WebAssembly for the web platform. This package provides a powerful JavaScript interface to PDFium, enabling high-quality PDF rendering and manipulation directly in web applications.

78 lines 2.39 kB
{ "name": "@embedpdf/pdfium", "version": "1.0.4", "private": false, "description": "PDFium WebAssembly for the web platform. This package provides a powerful JavaScript interface to PDFium, enabling high-quality PDF rendering and manipulation directly in web applications.", "type": "module", "main": "./dist/index.cjs", "module": "./dist/index.js", "types": "./dist/index.d.ts", "exports": { ".": { "browser": { "types": "./dist/index.d.ts", "default": "./dist/index.browser.js" }, "import": { "types": "./dist/index.d.ts", "default": "./dist/index.js" }, "require": { "types": "./dist/index.d.cts", "default": "./dist/index.cjs" } }, "./pdfium.wasm": "./dist/pdfium.wasm" }, "repository": { "type": "git", "url": "https://github.com/embedpdf/embed-pdf-viewer", "directory": "packages/pdfium" }, "homepage": "https://www.embedpdf.com/docs/pdfium/introduction", "bugs": { "url": "https://github.com/embedpdf/embed-pdf-viewer/issues" }, "keywords": [ "pdf", "pdfium", "webassembly", "wasm", "render", "viewer" ], "files": [ "dist", "README.md" ], "author": "Bob Singor, Ji Chang", "license": "MIT", "devDependencies": { "@rollup/plugin-commonjs": "^25.0.8", "@rollup/plugin-node-resolve": "^15.2.1", "@rollup/plugin-replace": "^5.0.2", "@rollup/plugin-typescript": "^11.1.2", "@types/emscripten": "^1.39.13", "cpy-cli": "^5.0.0", "magic-string": "^0.30.17", "rollup": "^3.28.0", "rollup-plugin-copy": "^3.4.0", "rollup-plugin-dts": "^6.2.1", "typescript": "^5.0.0" }, "publishConfig": { "access": "public" }, "scripts": { "build": "rollup -c", "build:watch": "rollup -c -w", "clean": "PROJECT_CWD=$(pwd) pnpm -w p:clean", "lint": "PROJECT_CWD=$(pwd) pnpm -w p:lint", "lint:fix": "PROJECT_CWD=$(pwd) pnpm -w p:lint:fix", "typecheck": "PROJECT_CWD=$(pwd) pnpm -w p:typecheck", "prewasm": "node ./scripts/generate-exported-functions.js && node ./scripts/generate-exported-runtime-methods.js", "wasm": "make build && pnpm run wasm:copy", "wasm:copy": "cpy \"./docker/dist/{pdfium.cjs,pdfium.js,pdfium.wasm,functions.ts,runtime-methods.ts}\" ./src/vendor --flat", "build:all": "pnpm run wasm && pnpm run build" } }