{"_id":"@crepidoma/wxt-sized-icons","_rev":"3-f194086cf569e1da05ce890cf7db6f05","name":"@crepidoma/wxt-sized-icons","dist-tags":{"latest":"1.1.0"},"versions":{"0.1.0":{"name":"@crepidoma/wxt-sized-icons","version":"0.1.0","keywords":["wxt","wxt-module","module","icons","manifest"],"author":{"name":"yabpaseri"},"license":"MIT","_id":"@crepidoma/wxt-sized-icons@0.1.0","maintainers":[{"name":"yabpaseri","email":"yabpaseri@gmail.com"}],"homepage":"https://github.com/crepidoma/wxt-sized-icons#readme","bugs":{"url":"https://github.com/crepidoma/wxt-sized-icons/issues"},"dist":{"shasum":"f488d0aaaf2d1e6f6c668d08796392daf1cdc288","tarball":"https://registry.npmjs.org/@crepidoma/wxt-sized-icons/-/wxt-sized-icons-0.1.0.tgz","fileCount":5,"integrity":"sha512-VVF/4D5HwJy4X4pwsSW6MMXGpN4UB8yEKBUjSGnBtNngk7/8eyXNzpURxFg1heTQi0NXEzQlvBlDqcXh2+KZZg==","signatures":[{"sig":"MEQCIHaPBdScplGIxDQsUqOMBhYVKRooreSOrYd0kY/Wsg2FAiAQttxhKT6LCSusmzEhlXKKkzTBArQDnoFAi4NKPumhIg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":10279},"type":"module","types":"./dist/index.d.mts","module":"./dist/index.mjs","exports":{".":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"}},"gitHead":"1ddc3cd70d171572239a448e29cc229e866e0f9c","scripts":{"lint":"biome check .","test":"vitest run","build":"tsdown","prepack":"tsdown","publint":"publint","lint:fix":"biome check --write .","typecheck":"tsc --noEmit"},"_npmUser":{"name":"yabpaseri","email":"yabpaseri@gmail.com"},"repository":{"url":"git+https://github.com/crepidoma/wxt-sized-icons.git","type":"git"},"_npmVersion":"11.11.0","description":"WXT module for generating extension icons, with a different source image per size.","directories":{},"sideEffects":false,"_nodeVersion":"24.14.1","dependencies":{"defu":"^6.1.4","sharp":"^0.34.5"},"_hasShrinkwrap":false,"packageManager":"pnpm@11.5.2","devDependencies":{"wxt":"^0.20.26","tsdown":"^0.22.2","vitest":"^4.1.8","publint":"^0.3.21","typescript":"^5.9.3","@types/node":"^24.0.0","@biomejs/biome":"2.4.16"},"peerDependencies":{"wxt":">=0.19.0"},"_npmOperationalInternal":{"tmp":"tmp/wxt-sized-icons_0.1.0_1781927092976_0.8054400711734269","host":"s3://npm-registry-packages-npm-production"}},"1.0.0":{"name":"@crepidoma/wxt-sized-icons","version":"1.0.0","keywords":["wxt","wxt-module","module","icons","manifest"],"author":{"name":"yabpaseri"},"license":"MIT","_id":"@crepidoma/wxt-sized-icons@1.0.0","maintainers":[{"name":"yabpaseri","email":"yabpaseri@gmail.com"}],"homepage":"https://github.com/crepidoma/wxt-sized-icons#readme","bugs":{"url":"https://github.com/crepidoma/wxt-sized-icons/issues"},"dist":{"shasum":"3e0b8b6edc3a0230d75dcab9f21f9492b66ae54e","tarball":"https://registry.npmjs.org/@crepidoma/wxt-sized-icons/-/wxt-sized-icons-1.0.0.tgz","fileCount":5,"integrity":"sha512-N57rh9vJ/xAxy/ZfPfcTOj9OUuqX75zNW/WxFcOmZwJvhMET+HaL2r3DpBnuf1TMJyHIgT9X5HUhGLDziWg1rQ==","signatures":[{"sig":"MEUCIA6+TgA03J1i5HRtDnJcbwrpAJDfQ175wR7az3FsPTtaAiEAw+V53wv7uCne90JD7vdrXFCpZg5B3uxQ2AsDxGFMgSE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@crepidoma%2fwxt-sized-icons@1.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":10279},"type":"module","types":"./dist/index.d.mts","module":"./dist/index.mjs","exports":{".":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"}},"gitHead":"46bcc14f4dd8643c751a1c09506a1a1a8d48e6bf","scripts":{"lint":"biome check .","test":"vitest run","build":"tsdown","prepack":"tsdown","publint":"publint","lint:fix":"biome check --write .","typecheck":"tsc --noEmit"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:0bfbad04-56eb-472f-9892-17cf93f8faf9"}},"repository":{"url":"git+https://github.com/crepidoma/wxt-sized-icons.git","type":"git"},"_npmVersion":"11.13.0","description":"WXT module for generating extension icons, with a different source image per size.","directories":{},"sideEffects":false,"_nodeVersion":"24.16.0","dependencies":{"defu":"^6.1.4","sharp":"^0.34.5"},"_hasShrinkwrap":false,"packageManager":"pnpm@11.5.2","devDependencies":{"wxt":"^0.20.26","tsdown":"^0.22.2","vitest":"^4.1.8","publint":"^0.3.21","typescript":"^5.9.3","@types/node":"^24.0.0","@biomejs/biome":"2.4.16"},"peerDependencies":{"wxt":">=0.19.0"},"_npmOperationalInternal":{"tmp":"tmp/wxt-sized-icons_1.0.0_1781927550056_0.8003961913043076","host":"s3://npm-registry-packages-npm-production"}},"1.1.0":{"name":"@crepidoma/wxt-sized-icons","description":"WXT module for generating extension icons, with a different source image per size.","version":"1.1.0","type":"module","license":"MIT","author":{"name":"yabpaseri"},"repository":{"type":"git","url":"git+https://github.com/crepidoma/wxt-sized-icons.git"},"packageManager":"pnpm@11.5.2","sideEffects":false,"keywords":["wxt","wxt-module","module","icons","manifest"],"module":"./dist/index.mjs","types":"./dist/index.d.mts","exports":{".":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"}},"scripts":{"build":"tsdown","typecheck":"tsc --noEmit","lint":"biome check .","lint:fix":"biome check --write .","test":"vitest run","publint":"publint","prepack":"tsdown"},"peerDependencies":{"wxt":">=0.19.0"},"dependencies":{"defu":"^6.1.4","sharp":"^0.35.2"},"devDependencies":{"@biomejs/biome":"2.4.16","@types/node":"^24.0.0","publint":"^0.3.21","tsdown":"^0.22.2","typescript":"^5.9.3","vitest":"^4.1.8","wxt":"^0.20.26"},"gitHead":"8cf4a09569c6348c1749331f8b3fd46330d4f09c","_id":"@crepidoma/wxt-sized-icons@1.1.0","bugs":{"url":"https://github.com/crepidoma/wxt-sized-icons/issues"},"homepage":"https://github.com/crepidoma/wxt-sized-icons#readme","_nodeVersion":"24.17.0","_npmVersion":"11.13.0","dist":{"integrity":"sha512-ISWnOidRO6Rod8LOxBJb0+UAfjt4Dxxsb3QEaOYc8EdzhMVXLWbA2JES7bHNPivEDC/LXanpq2TZ9YtOapzOuw==","shasum":"3737df10372edf8bc2ec9c2fcdb76f4676ee1a02","tarball":"https://registry.npmjs.org/@crepidoma/wxt-sized-icons/-/wxt-sized-icons-1.1.0.tgz","fileCount":5,"unpackedSize":10279,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@crepidoma%2fwxt-sized-icons@1.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIFh7to5Uh6F4k7ItXqQClyVq1A2chZNE2E6UIY02qLdaAiEApWjtY9/ApaDOtu50OUldE+c5vG2hyDNW+ak6VPReLtc="}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:0bfbad04-56eb-472f-9892-17cf93f8faf9"}},"directories":{},"maintainers":[{"name":"yabpaseri","email":"yabpaseri@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/wxt-sized-icons_1.1.0_1782561280393_0.00021975838969967576"},"_hasShrinkwrap":false}},"time":{"created":"2026-06-20T03:44:52.887Z","modified":"2026-06-27T11:54:40.843Z","0.1.0":"2026-06-20T03:44:53.170Z","1.0.0":"2026-06-20T03:52:30.175Z","1.1.0":"2026-06-27T11:54:40.541Z"},"bugs":{"url":"https://github.com/crepidoma/wxt-sized-icons/issues"},"author":{"name":"yabpaseri"},"license":"MIT","homepage":"https://github.com/crepidoma/wxt-sized-icons#readme","keywords":["wxt","wxt-module","module","icons","manifest"],"repository":{"type":"git","url":"git+https://github.com/crepidoma/wxt-sized-icons.git"},"description":"WXT module for generating extension icons, with a different source image per size.","maintainers":[{"name":"yabpaseri","email":"yabpaseri@gmail.com"}],"readme":"# wxt-module-sized-icons\n\nA [WXT](https://wxt.dev) module for generating extension icons. Based on\n[`@wxt-dev/auto-icons`](https://www.npmjs.com/package/@wxt-dev/auto-icons) (single base image →\nall sizes, development indicator) with one extra capability: **a different source image per size**.\n\n## Install\n\n```sh\npnpm add -D @crepidoma/wxt-sized-icons\n# peer dependency\npnpm add -D wxt\n```\n\n## Usage\n\nAdd the module and configure it under `sizedIcons` in `wxt.config.ts`:\n\n```ts\nimport { defineConfig } from 'wxt';\n\nexport default defineConfig({\n  modules: ['@crepidoma/wxt-sized-icons'],\n  sizedIcons: {\n    // generated from baseIconPath\n    sizes: [128, 48, 32, 16],\n    // give specific sizes their own image, or add extra sizes\n    overrides: {\n      16: 'assets/icon-16.png',\n      32: 'assets/icon-32.png',\n    },\n  },\n});\n```\n\nThe final set of generated sizes is the **union** of `sizes` and the keys of `overrides`.\nSizes not listed in `overrides` use `baseIconPath`.\n\n## Options\n\n| Option                 | Type                                   | Default              | Description                                                                 |\n| ---------------------- | -------------------------------------- | -------------------- | --------------------------------------------------------------------------- |\n| `enabled`              | `boolean`                              | `true`               | Enable icon generation.                                                     |\n| `baseIconPath`         | `string`                               | `'assets/icon.png'`  | Base image for sizes in `sizes` (relative to src dir).                      |\n| `developmentIndicator` | `'grayscale' \\| 'overlay' \\| false`    | `'grayscale'`        | Indicator applied in development mode.                                      |\n| `sizes`                | `number[]`                             | `[128, 48, 32, 16]`  | Sizes generated from `baseIconPath`.                                        |\n| `overrides`            | `Record<number, string>`               | `{}`                 | Per-size source image overrides (relative to src dir). Adds/replaces sizes. |\n\n## Development\n\n```sh\npnpm install\npnpm build      # tsdown → dist/\npnpm test       # vitest\npnpm lint       # biome\npnpm typecheck  # tsc --noEmit\npnpm publint    # validate package exports before publishing\n```\n\n## License\n\nMIT\n","readmeFilename":"README.md"}