UNPKG

pdf-lib

Version:

Create and modify PDF files with JavaScript

113 lines (112 loc) 4.57 kB
{ "name": "pdf-lib", "version": "1.2.1", "description": "Create and modify PDF files with JavaScript", "author": "Andrew Dillon <andrew.dillon.j@gmail.com>", "contributors": [ "jerp (https://github.com/jerp)", "Greg Bacchus (https://github.com/gregbacchus)", "Mickael Lecoq (https://github.com/mlecoq)", "Philip Murphy (https://github.com/philipjmurphy)", "Dmitry Kozliuk (https://github.com/PlushBeaver)", "Said Amezyane (https://github.com/samezyane)", "Georges Gabereau (https://github.com/multiplegeorges)", "Gerard Smit (https://github.com/GerardSmit)", "jlmessenger (https://github.com/jlmessenger)", "thebenlamm (https://github.com/thebenlamm)" ], "scripts": { "release:latest": "yarn publish --tag latest && yarn pack && yarn release:tag", "release:next": "yarn publish --tag next", "release:prep": "yarn clean && yarn lint && yarn typecheck && yarn test && yarn build", "release:tag": "TAG=\"v$(yarn --silent get:version)\" && git tag $TAG && git push origin $TAG", "get:version": "node --eval 'console.log(require(`./package.json`).version)'", "clean": "rimraf build cjs dist es scratchpad/build coverage tsBuildInfo.json isolate*.log flamegraph.html out.pdf", "typecheck": "tsc --noEmit", "test": "jest --config jest.json --runInBand", "testw": "jest --config jest.json --watch --notify", "testc": "jest --config jest.json --coverage && open coverage/index.html", "lint": "yarn lint:prettier && yarn lint:tslint:src && yarn lint:tslint:tests", "lint:tslint:src": "tslint --project tsconfig.json --fix", "lint:tslint:tests": "tslint --project tests/tsconfig.json --fix", "lint:prettier": "prettier --write './{src,tests}/**/*.{ts,js,json}' --loglevel error", "build": "yarn build:cjs && yarn build:es && yarn build:umd && yarn build:umd:min", "build:cjs": "ttsc --module commonjs --outDir cjs", "build:es": "ttsc --module ES2015 --outDir es", "build:umd": "rollup --config rollup.config.js --file dist/pdf-lib.js", "build:umd:min": "rollup --config rollup.config.js --file dist/pdf-lib.min.js --environment MINIFY", "scratchpad:start": "ttsc --build scratchpad/tsconfig.json --watch", "scratchpad:run": "node scratchpad/build/scratchpad/index.js", "scratchpad:flame": "rimraf isolate*.log && node --prof scratchpad/build/scratchpad/index.js && node --prof-process --preprocess -j isolate*.log | flamebearer", "apps:node": "ttsc --build apps/node/tsconfig.json && node apps/node-build/index.js", "apps:web": "http-server -c-1 .", "apps:web:mac": "bash -c 'sleep 1 && open http://localhost:8080/apps/web/test1.html' & yarn apps:web", "apps:rn:ios": "cd apps/rn && yarn add ./../.. --force && react-native run-ios", "apps:rn:android": "yarn apps:rn:emulator & cd apps/rn && yarn add ./../.. --force && react-native run-android", "apps:rn:emulator": "emulator -avd \"$(emulator -list-avds | head -n 1)\" & bash -c 'sleep 5 && adb reverse tcp:8080 tcp:8080 && adb reverse tcp:8081 tcp:8081'" }, "types": "cjs/index.d.ts", "main": "cjs/index.js", "module": "es/index.js", "unpkg": "dist/pdf-lib.min.js", "files": [ "cjs/", "dist/", "es/", "src/", "LICENSE.md", "package.json", "README.md", "yarn.lock" ], "dependencies": { "@pdf-lib/standard-fonts": "^0.0.4", "pako": "^1.0.10", "png-ts": "^0.0.3", "tslib": "^1.10.0" }, "devDependencies": { "@pdf-lib/fontkit": "^0.0.4", "@types/jest": "^24.0.18", "@types/node-fetch": "^2.5.1", "@types/pako": "^1.0.1", "@zerollup/ts-transform-paths": "^1.7.3", "flamebearer": "^1.1.3", "http-server": "^0.11.1", "jest": "^24.9.0", "node-fetch": "^2.6.0", "prettier": "^1.18.2", "rimraf": "^3.0.0", "rollup": "^1.21.4", "rollup-plugin-commonjs": "^10.1.0", "rollup-plugin-json": "^4.0.0", "rollup-plugin-node-resolve": "^5.2.0", "rollup-plugin-terser": "^5.1.2", "ts-jest": "^24.1.0", "tslint": "^5.20.0", "tslint-config-prettier": "^1.18.0", "ttypescript": "^1.5.7", "typescript": "^3.6.3" }, "license": "MIT", "private": false, "homepage": "https://pdf-lib.js.org", "repository": "git+https://github.com/Hopding/pdf-lib.git", "bugs": { "url": "https://github.com/Hopding/pdf-lib/issues" }, "keywords": [ "pdf-lib", "pdf", "document", "create", "modify", "creation", "modification", "edit", "editing", "typescript", "javascript", "library" ] }