{"_id":"@any-tdf/vite-plugin-svg-symbol","_rev":"4-aa47ba5dca4958a8c8eecf37b9fad493","name":"@any-tdf/vite-plugin-svg-symbol","dist-tags":{"latest":"0.0.4"},"versions":{"0.0.1":{"name":"@any-tdf/vite-plugin-svg-symbol","version":"0.0.1","keywords":["stdf","vtdf","rtdf","symbol","sprite","vite","vite-plugin","rollup","rollup-plugin","svg","icon"],"author":{"name":"any-tdf"},"license":"MIT","_id":"@any-tdf/vite-plugin-svg-symbol@0.0.1","maintainers":[{"name":"dufu1991","email":"dufu1991@163.com"}],"homepage":"https://github.com/any-tdf/vite-plugin-svg-symbol","bugs":{"url":"https://github.com/any-tdf/vite-plugin-svg-symbol/issues"},"dist":{"shasum":"baefe68220f536194a2f36b89398f9bf33001c82","tarball":"https://registry.npmjs.org/@any-tdf/vite-plugin-svg-symbol/-/vite-plugin-svg-symbol-0.0.1.tgz","fileCount":6,"integrity":"sha512-PsbO4E1BvjRaMgxhwtXzOmaxvW8qvl1rUEL4eMahwbKQzTnonfjRtXoRjtknT+HrJgRVG7Ob85DNQ7tFbOQ9HQ==","signatures":[{"sig":"MEUCIFhObpT3NkBli1U8JmM33XMknujayEesmT94V1oR5yQjAiEA5IzYshv14SPDOCm4UuB9lKUyR7YBAN3N4Dv1JLGBW6w=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":30331},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","engines":{"node":">=14.14"},"funding":"https://stdf.design?fund","scripts":{"test":"node test/index.js","build":"rollup -c"},"_npmUser":{"name":"dufu1991","email":"dufu1991@163.com"},"repository":{"url":"git+https://github.com/any-tdf/vite-plugin-svg-symbol.git","type":"git"},"_npmVersion":"11.7.0","description":"A Vite plugin that combines a series of SVG files into one symbol","directories":{},"_nodeVersion":"25.4.0","dependencies":{"svgo":"^3.3.2","fs-extra":"^11.3.3","svgstore":"^3.0.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"rollup":"^4.56.0","typescript":"^5.9.3","@types/node":"^22.19.7","@types/fs-extra":"^11.0.4","@rollup/plugin-terser":"^0.4.4","@rollup/plugin-typescript":"^12.3.0"},"_npmOperationalInternal":{"tmp":"tmp/vite-plugin-svg-symbol_0.0.1_1769140963444_0.07337095591685205","host":"s3://npm-registry-packages-npm-production"}},"0.0.2":{"name":"@any-tdf/vite-plugin-svg-symbol","version":"0.0.2","keywords":["stdf","vtdf","rtdf","symbol","sprite","vite","vite-plugin","rollup","rollup-plugin","svg","icon"],"author":{"name":"any-tdf"},"license":"MIT","_id":"@any-tdf/vite-plugin-svg-symbol@0.0.2","maintainers":[{"name":"dufu1991","email":"dufu1991@163.com"}],"homepage":"https://github.com/any-tdf/vite-plugin-svg-symbol","bugs":{"url":"https://github.com/any-tdf/vite-plugin-svg-symbol/issues"},"dist":{"shasum":"cfdd7ce84c5928b8dc28dee8c5cff0d2f023a2db","tarball":"https://registry.npmjs.org/@any-tdf/vite-plugin-svg-symbol/-/vite-plugin-svg-symbol-0.0.2.tgz","fileCount":6,"integrity":"sha512-Qx8U6dSLuTv/0i95OGOcdXhhelEb358DTpZRg3FfVaqami2135ZXNnEtsb5GCzcBKWKuhaXqbEWGf6Nb+TX2Aw==","signatures":[{"sig":"MEYCIQDuu3vg3P6dbAs2fyxesgzQlwt/i6ewFfvtfVEZqnyHSgIhAOym+0IDHS4e2IjaVHeUVpxWNSP7lfTa0ZWThqHxZQTf","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@any-tdf%2fvite-plugin-svg-symbol@0.0.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":30754},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","engines":{"node":">=14.14"},"funding":"https://stdf.design?fund","gitHead":"d142e3b32eaf98f7c1adb7e6fa9375670f129f4a","scripts":{"test":"node test/index.js","build":"rollup -c"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:cf98bcdf-201c-4b6a-b492-600a06896143"}},"repository":{"url":"git+https://github.com/any-tdf/vite-plugin-svg-symbol.git","type":"git"},"_npmVersion":"11.6.2","description":"A Vite plugin that combines a series of SVG files into one symbol","directories":{},"_nodeVersion":"24.13.0","dependencies":{"svgo":"^4.0.0","fs-extra":"^11.3.3","svgstore":"^3.0.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"rollup":"^4.56.0","typescript":"^5.9.3","@types/node":"^25.0.10","@types/fs-extra":"^11.0.4","@rollup/plugin-terser":"^0.4.4","@rollup/plugin-typescript":"^12.3.0"},"_npmOperationalInternal":{"tmp":"tmp/vite-plugin-svg-symbol_0.0.2_1769141936686_0.22743362337125905","host":"s3://npm-registry-packages-npm-production"}},"0.0.3":{"name":"@any-tdf/vite-plugin-svg-symbol","version":"0.0.3","keywords":["stdf","vtdf","rtdf","symbol","sprite","vite","vite-plugin","rollup","rollup-plugin","svg","icon"],"author":{"name":"any-tdf"},"license":"MIT","_id":"@any-tdf/vite-plugin-svg-symbol@0.0.3","maintainers":[{"name":"dufu1991","email":"dufu1991@163.com"}],"homepage":"https://github.com/any-tdf/vite-plugin-svg-symbol","bugs":{"url":"https://github.com/any-tdf/vite-plugin-svg-symbol/issues"},"dist":{"shasum":"b55ff73dfc02a8bde31944f33fd0e90e02c0e75b","tarball":"https://registry.npmjs.org/@any-tdf/vite-plugin-svg-symbol/-/vite-plugin-svg-symbol-0.0.3.tgz","fileCount":5,"integrity":"sha512-eYQstbzOyJxOgp3622Gbch5juTb0lL0Q1v1Ls0Q21CoURvrU9bvQ/Gi7AkkectNlslzhSx+98CW6erTDwQ5XKQ==","signatures":[{"sig":"MEUCIBZiAo73Ujbi4HI7w7FtnT77zDC16OGKUMOvFNbCcunWAiEAk49/4HmucIlv2kmwb4x7f2GsTTtyE2hVL8rY2Z3GOYM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@any-tdf%2fvite-plugin-svg-symbol@0.0.3","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":13857},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","engines":{"node":">=14.14"},"funding":"https://stdf.design?fund","gitHead":"dbe0891fe270cb7a4ecc6623885622a07d60a342","scripts":{"test":"node test/index.js","build":"rollup -c"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:cf98bcdf-201c-4b6a-b492-600a06896143"}},"repository":{"url":"git+https://github.com/any-tdf/vite-plugin-svg-symbol.git","type":"git"},"_npmVersion":"11.6.2","description":"A Vite plugin that combines a series of SVG files into one symbol","directories":{},"_nodeVersion":"24.13.0","dependencies":{"svgo":"^4.0.0","fs-extra":"^11.3.3","svgstore":"^3.0.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"rollup":"^4.56.0","typescript":"^5.9.3","@types/node":"^25.0.10","@types/fs-extra":"^11.0.4","@rollup/plugin-terser":"^0.4.4","@rollup/plugin-typescript":"^12.3.0"},"_npmOperationalInternal":{"tmp":"tmp/vite-plugin-svg-symbol_0.0.3_1769142711127_0.20570989712234833","host":"s3://npm-registry-packages-npm-production"}},"0.0.4":{"_id":"@any-tdf/vite-plugin-svg-symbol@0.0.4","bugs":{"url":"https://github.com/any-tdf/any-tdf/issues"},"dist":{"shasum":"5495129b8442905f36b19ac7fb20d2efc2de6fdf","tarball":"https://registry.npmjs.org/@any-tdf/vite-plugin-svg-symbol/-/vite-plugin-svg-symbol-0.0.4.tgz","fileCount":7,"integrity":"sha512-ehj50FEjOmnHPtIiR2X7Hwh5mZkZ/P9a2+UwE0qd+F3a51TcHRq8gnyqqSlOwJcwO2y7WrYjVj0H59TiNyk19w==","signatures":[{"sig":"MEYCIQCwpwpHjJi+YS/OgcNsuXUj9UDNWGO2Vosb8pvE07m21wIhAK55J7zy2wXCEMfVG0Mp+9Q5G+U/+oM3e/UEB7hfYg8o","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIBGmwU4cVHSKP5Phk8ffHWr08rKT+vbq80iLC3zcEBfqAiEAiZ7vywUoGns8KzK801cOKLhp2avJ2iyeoD/CcZPG4UM="}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@any-tdf%2fvite-plugin-svg-symbol@0.0.4","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":9084},"main":"./dist/index.mjs","name":"@any-tdf/vite-plugin-svg-symbol","type":"module","_from":"file:/tmp/any-tdf-publish-NgzjD0/any-tdf-vite-plugin-svg-symbol-0.0.4-publish.tgz","types":"./dist/index.d.mts","author":{"name":"any-tdf"},"module":"./dist/index.mjs","engines":{"node":">=14.14"},"exports":{".":{"types":"./dist/index.d.mts","import":"./dist/index.mjs","default":"./dist/index.mjs"}},"funding":"https://any-tdf.dev/?fund","license":"MIT","scripts":{"test":"bun test","build":"vp pack src/index.ts --dts --minify","check":"tsc -p tsconfig.json --noEmit","package":"bun run build && publint && bun pm pack --dry-run --quiet","release:check":"bun run check && bun run test && bun run package","verify:workspace":"bun run test"},"version":"0.0.4","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"73dc671f-a96f-4721-bcfb-8f3bc695a5ae"}},"homepage":"https://github.com/any-tdf/any-tdf/tree/main/packages/vite-plugin-svg-symbol#readme","keywords":["icon","rollup","rollup-plugin","sprite","stdf","svg","symbol","vite","vite-plugin"],"_resolved":"/tmp/any-tdf-publish-NgzjD0/any-tdf-vite-plugin-svg-symbol-0.0.4-publish.tgz","_integrity":"sha512-ehj50FEjOmnHPtIiR2X7Hwh5mZkZ/P9a2+UwE0qd+F3a51TcHRq8gnyqqSlOwJcwO2y7WrYjVj0H59TiNyk19w==","repository":{"url":"git+https://github.com/any-tdf/any-tdf.git","type":"git","directory":"packages/vite-plugin-svg-symbol"},"_npmVersion":"12.0.2","description":"A Vite and Rollup plugin that combines SVG files into symbol sprites.","directories":{},"maintainers":[{"name":"dufu1991","email":"dufu1991@163.com"}],"sideEffects":false,"_nodeVersion":"24.21.0","dependencies":{"svgo":"^4.0.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"publint":"^0.3.23","vite-plus":"^0.2.7","@types/bun":"^1.3.14","typescript":"7.0.2","@types/node":"^26.1.2"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/vite-plugin-svg-symbol_0.0.4_1790865304595_0.0739395345184628"}}},"time":{"created":"2026-01-23T04:02:43.361Z","modified":"2026-10-01T14:35:05.087Z","0.0.1":"2026-01-23T04:02:43.602Z","0.0.2":"2026-01-23T04:18:56.838Z","0.0.3":"2026-01-23T04:31:51.287Z","0.0.4":"2026-10-01T14:35:04.685Z"},"bugs":{"url":"https://github.com/any-tdf/any-tdf/issues"},"author":{"name":"any-tdf"},"license":"MIT","homepage":"https://github.com/any-tdf/any-tdf/tree/main/packages/vite-plugin-svg-symbol#readme","keywords":["icon","rollup","rollup-plugin","sprite","stdf","svg","symbol","vite","vite-plugin"],"repository":{"url":"git+https://github.com/any-tdf/any-tdf.git","type":"git","directory":"packages/vite-plugin-svg-symbol"},"description":"A Vite and Rollup plugin that combines SVG files into symbol sprites.","maintainers":[{"name":"dufu1991","email":"dufu1991@163.com"}],"readme":"# @any-tdf/vite-plugin-svg-symbol\n\nA Vite and Rollup plugin that combines one or more folders of SVG files into reusable SVG symbol sprites.\n\n## Install\n\n```sh\nbun add @any-tdf/vite-plugin-svg-symbol -D\n```\n\n## Usage\n\n```ts\nimport { defineConfig } from 'vite';\nimport svgSymbol from '@any-tdf/vite-plugin-svg-symbol';\n\nexport default defineConfig({\n\tplugins: [\n\t\tsvgSymbol([\n\t\t\t{\n\t\t\t\tinFile: 'src/icons',\n\t\t\t\toutFile: 'public/fonts',\n\t\t\t\tfileName: 'icons'\n\t\t\t}\n\t\t])\n\t]\n});\n```\n\nThe same plugin can be used in a Rollup configuration. During Vite development it watches configured input folders and rebuilds the affected sprite after an SVG changes.\n\n## Options\n\n| Option     | Type      | Default                  | Description                                                    |\n| ---------- | --------- | ------------------------ | -------------------------------------------------------------- |\n| `inFile`   | `string`  | `src/lib/symbol`         | Folder containing source SVG files.                            |\n| `outFile`  | `string`  | `public/fonts`           | Folder receiving the generated sprite.                         |\n| `fileName` | `string`  | Last segment of `inFile` | Output filename without the `.svg` extension.                  |\n| `simple`   | `boolean` | `true`                   | Replaces supported fill and stroke colors with `currentColor`. |\n\nMultiple option objects can be passed to generate several sprites in one build.\n\n## Standalone API\n\n`createSvgSprite` can generate a sprite without starting Vite:\n\n```ts\nimport { createSvgSprite } from '@any-tdf/vite-plugin-svg-symbol';\n\ncreateSvgSprite([{ inFile: 'src/icons', outFile: 'public/fonts' }]);\n```\n\n## Source and License\n\n- [Source](https://github.com/any-tdf/any-tdf/tree/main/packages/vite-plugin-svg-symbol)\n- [MIT License](https://github.com/any-tdf/any-tdf/blob/main/LICENSE)\n","readmeFilename":"README.md"}