Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
119 lines (119 loc) · 4.81 KB
/
Copy pathpackage.json
File metadata and controls
119 lines (119 loc) · 4.81 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
{
"name": "@zumer/snapdom",
"version": "3.8.3",
"description": "High-performance DOM engine: captures a rendered element in the browser and exports it as PNG, SVG or canvas. Plugins add PDF, HTML, vector, GIF, video and agent context.",
"type": "module",
"main": "./dist/snapdom.js",
"module": "./dist/snapdom.mjs",
"types": "./types/snapdom.d.ts",
"sideEffects": false,
"workspaces": [
"packages/*"
],
"exports": {
".": {
"types": "./types/snapdom.d.ts",
"import": "./dist/snapdom.mjs",
"default": "./dist/snapdom.mjs"
},
"./plugins": {
"types": "./types/snapdom.d.ts",
"import": "./dist/snapdom.mjs",
"default": "./dist/snapdom.mjs"
},
"./package.json": "./package.json"
},
"files": [
"dist/",
"types/snapdom.d.ts",
"skills/",
"README.md"
],
"scripts": {
"compile": "node esbuild.config.mjs",
"lint": "eslint src __tests__ --ext .js",
"lint:fix": "eslint src __tests__ --ext .js --fix",
"check": "npm run lint && tsc --noEmit && node --test scripts/release-checks.node.mjs scripts/benchmark-statistics.node.mjs && npm run compile && node scripts/verify-legacy-bundle.mjs",
"test": "npm run check && REQUIRE_VISUAL=1 node scripts/vitest.mjs run --browser.headless --reporter=verbose",
"test:firefox": "npm run check && REQUIRE_VISUAL=1 BROWSER=firefox node scripts/vitest.mjs run --browser.headless --reporter=verbose",
"test:webkit": "npm run check && REQUIRE_VISUAL=1 BROWSER=webkit node scripts/vitest.mjs run --browser.headless --reporter=verbose",
"test:full": "npm run check && for b in chromium firefox webkit; do REQUIRE_VISUAL=1 BROWSER=$b node scripts/vitest.mjs run --browser.headless --reporter=dot || exit 1; done",
"test:parity": "npm run compile && node scripts/live-parity.mjs",
"test:visual": "REQUIRE_VISUAL=1 BROWSER=all node scripts/vitest.mjs run __tests__/visual.demos. --browser.headless --reporter=verbose",
"test:pdf": "node packages/pdf/test/verify.mjs && node packages/pdf/test/megacheck.mjs && node packages/pdf/test/encryptcheck.mjs && node packages/pdf/test/fontcheck.mjs && node packages/pdf/test/woff2check.mjs",
"test:vector": "node packages/vector/test/verify-vector.mjs && node packages/vector/test/verify-h2d.mjs && node packages/vector/test/verify-plugin.mjs && node packages/vector/test/verify-mathml.mjs",
"test:coverage": "npx vitest run --browser.headless --coverage --exclude '__tests__/visual.*'",
"cross:report": "node scripts/cross-report.mjs",
"test:benchmark": "node scripts/benchmark-stable.mjs",
"test:benchmark:legacy": "npx vitest bench --browser.headless --watch=false",
"bench:realpage": "npm run compile && node scripts/realpage-bench.mjs",
"site": "npm run compile && node scripts/serve-site.mjs",
"bump:dry": "npx @zumerbox/bump -d",
"bump": "npx @zumerbox/bump && npx @zumerbox/changelog",
"release": "git add CHANGELOG.md && git commit -m \"Bumped version\" && git push --follow-tags",
"prepack": "npm run compile",
"publish:dev": "node scripts/publish-dev.mjs",
"publish:plugins": "node scripts/check-pack.mjs && npm publish --workspace=@zumer/snapdom-plugins --access public",
"publish:pdf": "npm run test:pdf && npm publish --workspace=@zumer/snapdom-pdf --access public",
"publish:vector": "npm run test:vector && npm publish --workspace=@zumer/snapdom-vector --access public",
"publish:stream": "npx vitest run __tests__/plugin.stream --browser.headless && npm publish --workspace=@zumer/snapdom-stream --access public"
},
"repository": {
"type": "git",
"url": "git+https://github.com/zumerlab/snapdom.git"
},
"keywords": [
"zumerlab",
"snapDOM",
"html2canvas",
"html2canvas alternative",
"dom-to-image alternative",
"html-to-image",
"screenshot",
"engine",
"html capture",
"dom capture",
"html to image",
"dom to image",
"html screenshot",
"capture element",
"html snapshot",
"element screenshot",
"web capture",
"snapshot tool",
"render html",
"capture dom",
"web snapshot",
"html export",
"dom snapshot",
"html to png",
"html to svg"
],
"author": "Juan Martin Muda",
"license": "MIT",
"bugs": {
"url": "https://github.com/zumerlab/snapdom/issues"
},
"homepage": "https://snapdom.dev/",
"funding": {
"type": "github",
"url": "https://github.com/sponsors/tinchox5"
},
"devDependencies": {
"@eslint/js": "^9.36.0",
"@vitest/browser": "^4.1.12",
"@vitest/browser-playwright": "^4.1.12",
"@vitest/coverage-v8": "^4.1.12",
"@zumer/snapdiff": "^0.3.0",
"esbuild": "^0.28.1",
"eslint": "^9.36.0",
"globals": "^16.4.0",
"pdfjs-dist": "4.10.38",
"playwright": "1.55.1",
"typescript": "^7.0.2",
"vitest": "^4.1.12"
},
"overrides": {
"vite": "^6"
}
}