-
Notifications
You must be signed in to change notification settings - Fork 24
/
package.json
63 lines (63 loc) · 2.07 KB
/
package.json
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
{
"name": "minidenticons",
"version": "4.2.1",
"description": "Super lightweight SVG identicon (icon avatar) generator",
"author": "Laurent Payot",
"license": "MIT",
"keywords": [
"identicon",
"generator",
"svg",
"avatar",
"icon",
"lightweight",
"light",
"GDPR"
],
"repository": {
"type": "git",
"url": "git+https://github.com/laurentpayot/minidenticons.git"
},
"bugs": {
"url": "https://github.com/laurentpayot/minidenticons/issues"
},
"homepage": "https://laurentpayot.github.io/minidenticons",
"type": "module",
"sideEffects": false,
"exports": {
".": {
"import": {
"types": "./index.d.ts",
"default": "./minidenticons.js"
},
"require": {
"types": "./index.d.ts",
"default": "./minidenticons.js"
}
}
},
"main": "./minidenticons.js",
"types": "./index.d.ts",
"files": [
"minidenticons*.js*",
"index.d.ts"
],
"engines": {
"node": ">=15.14.0"
},
"scripts": {
"build-js": "terser minidenticons.js --compress module=true --mangle module=true --source-map --output minidenticons.min.js",
"no-custom-element": "cat minidenticons.min.js | sed 's/export const minidenticonSvg=.*$//' > no-custom-element.min.js",
"size": "printf '_%.0s' {1..40} && echo \"\n\nWithout custom element:\" && pnpm --silent size-no-ce && echo \"With custom element:\" && pnpm -silent size-ce && echo",
"size-no-ce": "echo \"Minified brotli size:\t`brotli -Zcn no-custom-element.min.js | wc -c` bytes\nMinified gzip size:\t`gzip -9cn no-custom-element.min.js | wc -c` bytes\n\"",
"size-ce": "echo \"Minified brotli size:\t`brotli -Zcn minidenticons.min.js | wc -c` bytes\nMinified gzip size:\t`gzip -9cn minidenticons.min.js | wc -c` bytes\"",
"build": "pnpm build-js && pnpm no-custom-element && pnpm --silent size",
"test": "node tests",
"benchmark": "node benchmark/node",
"prepublish": "pnpm build && pnpm test && git push && git push --tags",
"serve": "python3 -m http.server"
},
"devDependencies": {
"terser": "^5.31.0"
}
}