mirror of
https://github.com/laurentpayot/minidenticons.git
synced 2026-01-09 21:17:59 -05:00
64 lines
2.1 KiB
JSON
64 lines
2.1 KiB
JSON
{
|
|
"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"
|
|
}
|
|
}
|