Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
189 lines (189 loc) · 7.87 KB
/
Copy pathpackage.json
File metadata and controls
189 lines (189 loc) · 7.87 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
{
"name": "@cantoo/pdf-lib",
"version": "2.11.0",
"description": "Create and modify PDF files with JavaScript",
"author": "Andrew Dillon <andrew.dillon.j@gmail.com>",
"packageManager": "yarn@1.22.19",
"exports": {
".": {
"types": "./cjs/index.d.ts",
"require": "./cjs/index.js",
"import": "./es/index.js"
},
"./upng": {
"types": "./dist/upng/index.d.ts",
"import": "./dist/upng/index.mjs",
"require": "./dist/upng/index.cjs"
},
"./standard-fonts": {
"types": "./dist/standard-fonts/index.d.ts",
"import": "./dist/standard-fonts/index.mjs",
"require": "./dist/standard-fonts/index.cjs"
}
},
"contributors": [
"François Billioud (https://github.com/Sharcoux)",
"Matheus Santos (https://github.com/matheus-santos)",
"Cantoo (https://github.com/cantoo-scribe)",
"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)",
"cshenks (https://github.com/cshenks)",
"James Woodrow (https://github.com/jwoodrow)",
"Guillaume Grossetie (https://github.com/Mogztter)",
"Philipp Tessenow (https://github.com/tessi)",
"Tim Kräuter (https://github.com/timKraeuter)",
"Richard Bateman (https://github.com/taxilian)",
"Sebastian Martinez (https://github.com/sebastinez)",
"soadzoor (https://github.com/soadzoor)",
"Slobodan Babic (https://github.com/bockoblur)",
"Zach Toben (https://github.com/ztoben)",
"Zack Sheppard (https://github.com/zackdotcomputer)",
"DkDavid (https://github.com/DkDavid)",
"Bj Tecu (https://github.com/btecu)",
"Brent McSharry (https://github.com/mcshaz)",
"Tim Knapp (https://github.com/duffyd)",
"Ching Chang (https://github.com/ChingChang9)",
"François Billioud (https://github.com/Sharcoux)",
"Phakorn Kiong (https://github.com/PhakornKiong)",
"Donald Ness (https://github.com/programmarchy)",
"Remus DRAICA (https://github.com/remdra)",
"David Abdala (https://github.com/adnsistemas)",
"Eran Ohayon (https://github.com/erano067)"
],
"scripts": {
"release": "yarn release:prep && release-it",
"release:prep": "yarn lint && yarn clean && yarn typecheck && yarn test && yarn build",
"release:publish": "npm publish --access public",
"get:version": "node --eval 'console.log(require(`./package.json`).version)'",
"clean": "rimraf ts3.4 build cjs dist es scratchpad/build coverage tsBuildInfo.json apps/node-build apps/node/tsBuildInfo.json isolate*.log flamegraph.html out.pdf src/packages/upng/dist src/packages/standard-fonts/dist",
"typecheck": "tsc --noEmit --incremental false --tsBuildInfoFile null",
"test": "yarn build:packages && jest --config jest.config.js --runInBand",
"testw": "jest --config jest.config.js --watch",
"testc": "yarn build:packages && jest --config jest.config.js --coverage && open coverage/index.html",
"lint-staged": "lint-staged",
"lint": "yarn lint:prettier && yarn lint:eslint",
"lint:eslint": "eslint . --fix",
"lint:prettier": "prettier --write \"./{src,tests,apps}/**/*.{ts,js,json,html,css}\" --log-level error",
"build:packages": "node ./scripts/build-packages.mjs",
"build:mirror": "node ./scripts/mirror-packages-dist.mjs",
"standard-fonts:afm": "node ./scripts/run-ts.mjs src/packages/standard-fonts/scripts/fonts/parse.ts",
"standard-fonts:encodings": "node ./scripts/run-ts.mjs src/packages/standard-fonts/scripts/encodings/parse.ts",
"standard-fonts:metrics": "yarn standard-fonts:afm && yarn standard-fonts:encodings",
"build": "yarn build:packages && yarn build:cjs && yarn build:es && yarn build:esm && yarn build:esm:min && yarn build:umd && yarn build:umd:min && yarn build:downlevel-dts && yarn build:mirror",
"build:cjs": "tsc --module commonjs --outDir cjs",
"build:es": "tsc --module ES2015 --outDir es && node ./scripts/es-build.js",
"build:esm": "rollup --config rollup.config.mjs --file dist/pdf-lib.esm.js --environment MODULE_TYPE:es",
"build:esm:min": "rollup --config rollup.config.mjs --file dist/pdf-lib.esm.min.js --environment MINIFY,MODULE_TYPE:es",
"build:umd": "rollup --config rollup.config.mjs --file dist/pdf-lib.js --environment MODULE_TYPE:umd",
"build:umd:min": "rollup --config rollup.config.mjs --file dist/pdf-lib.min.js --environment MINIFY,MODULE_TYPE:umd",
"build:downlevel-dts": "rimraf ts3.4 && yarn downlevel-dts . ts3.4 && rimraf ts3.4/scratchpad",
"build:test": "yarn build:packages && yarn build:es && yarn build:umd",
"prepublishOnly": "yarn build:packages",
"scratchpad:start": "tsc --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": "tsc --build apps/node/tsconfig.json && node apps/node-build/index.js",
"apps:deno": "deno run --allow-read --allow-write --allow-run apps/deno/index.ts",
"apps:web": "http-server -c-1 -o apps/web/test1.html",
"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'",
"prepare": "husky"
},
"main": "cjs/index.js",
"module": "es/index.js",
"unpkg": "dist/pdf-lib.min.js",
"types": "cjs/index.d.ts",
"typesVersions": {
"<=3.5": {
"*": [
"ts3.4/*"
]
}
},
"files": [
"cjs/",
"dist/",
"es/",
"src/",
"ts3.4",
"LICENSE.md",
"package.json",
"README.md",
"yarn.lock"
],
"dependencies": {
"culori": ">=4",
"fflate": "^0.8.2",
"node-html-better-parser": ">=1.5.9",
"tslib": ">=2"
},
"peerDependencies": {
"html-entities": ">=2.3.2"
},
"devDependencies": {
"@cantoo/fontkit": "^2.0.12",
"@eslint/js": "^9.35.0",
"@rollup/plugin-commonjs": "^25.0.7",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-terser": "^0.4.4",
"@types/culori": "^4.0.1",
"@types/jest": "^29.5.12",
"@typescript-eslint/eslint-plugin": "^8.0.0",
"@typescript-eslint/parser": "^8.0.0",
"downlevel-dts": "^0.11.0",
"esbuild": "^0.25.0",
"eslint": "^9.35.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.1.3",
"flamebearer": "^1.1.3",
"globals": "^15.0.0",
"http-server": "^14.1.1",
"husky": "^9.0.0",
"jest": "29.7.0",
"lint-staged": "^15.5.0",
"prettier": "^3.2.5",
"release-it": "^17.0.3",
"rimraf": "^5.0.5",
"rollup": "^4.9.6",
"ts-jest": "^29.0",
"typescript": "^5.0.0"
},
"license": "MIT",
"private": false,
"homepage": "https://pdf-lib.js.org",
"repository": "git+https://github.com/cantoo-scribe/pdf-lib.git",
"bugs": {
"url": "https://github.com/cantoo-scribe/pdf-lib/issues"
},
"keywords": [
"pdf-lib",
"pdf",
"document",
"create",
"modify",
"creation",
"modification",
"edit",
"editing",
"typescript",
"javascript",
"library"
],
"lint-staged": {
"{src,tests,apps}/**/*.{ts,js,json,html,css}": [
"prettier --check",
"eslint --fix"
]
}
}