{"_id":"astro-svg-sprite","_rev":"45-d37e9025b85d72b3a83da075f1529b4b","name":"astro-svg-sprite","dist-tags":{"latest":"1.1.0"},"versions":{"0.8.21-0.8":{"name":"astro-svg-sprite","version":"0.8.21-0.8","keywords":["withastro","astro-integration","astro","astro-component","astro-sprite-component","sprite","genertate sprite.svg","sprite svg","svg-sprite","SVG Sprite","spriter"],"author":{"name":"Junlin"},"license":"MIT","_id":"astro-svg-sprite@0.8.21-0.8","maintainers":[{"name":"jakichen","email":"JakiChen@live.cn"}],"homepage":"https://github.com/ACP-CODE/astro-svg-sprite#readme","bugs":{"url":"https://github.com/ACP-CODE/astro-svg-sprite/issues"},"dist":{"shasum":"7955520e3a5817c07eb5aaa6eda309b906b74b0e","tarball":"https://registry.npmjs.org/astro-svg-sprite/-/astro-svg-sprite-0.8.21-0.8.tgz","fileCount":4,"integrity":"sha512-qn4wAY/fmH82tdELopTdPJRLY21PRhOKe5Wr6bom8y+l2iebZSj+3LMenGC4PsZkSNHowCNl7K5g6cOje44Epw==","signatures":[{"sig":"MEQCIDjTz+QfAkctPv1MuAz6tmIF6CC74334lWv7jkTTu2W2AiBv0X7NCaupLT3Vg4+Jg8GI+6yaJNRaksqez4EftezTpg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":12139},"type":"module","types":"./dist/index.d.ts","exports":{".":"./dist/index.js","./package.json":"./package.json"},"gitHead":"591649cfa8baaea2df6f8b014c7b2980b6eab956","scripts":{"build":"npm run clear && at-scripts create-pkg-name && at-scripts build && tsc -p tsconfig.build.json","clear":"rm -rf ./dist"},"_npmUser":{"name":"jakichen","email":"JakiChen@live.cn"},"deprecated":"This package is deprecated. Please migrate to astro-svgs: https://www.npmjs.com/package/astro-svgs","repository":{"url":"git+https://github.com/ACP-CODE/astro-svg-sprite.git","type":"git"},"_npmVersion":"9.8.1","description":"This is a zero-dependency Astro Integration that generates a `sprite.svg` from SVG files in your Astro project.","directories":{},"_nodeVersion":"18.16.1","_hasShrinkwrap":false,"devDependencies":{"astro":"^2.10.5","at-scripts":"file:scripts/at-scripts-0.0.4.tgz"},"peerDependencies":{"astro":"^2.0.0-beta.0"},"_npmOperationalInternal":{"tmp":"tmp/astro-svg-sprite_0.8.21-0.8_1692365037202_0.6629430001195955","host":"s3://npm-registry-packages"}},"0.8.25":{"name":"astro-svg-sprite","version":"0.8.25","keywords":["withastro","astro-integration","astro","astro-component","astro-sprite-component","sprite","genertate sprite.svg","sprite svg","svg-sprite","SVG Sprite","spriter"],"author":{"name":"Junlin"},"license":"MIT","_id":"astro-svg-sprite@0.8.25","maintainers":[{"name":"jakichen","email":"JakiChen@live.cn"}],"homepage":"https://github.com/ACP-CODE/astro-svg-sprite#readme","bugs":{"url":"https://github.com/ACP-CODE/astro-svg-sprite/issues"},"dist":{"shasum":"02815ea467d08bd1df191ef65850a6a4c5dcb354","tarball":"https://registry.npmjs.org/astro-svg-sprite/-/astro-svg-sprite-0.8.25.tgz","fileCount":4,"integrity":"sha512-1U2GUOB9LIHVOF9lIw9AsPbTd1Kq9qd6gQ33/+6KYu9CIWOKE9IKwiwPDMmmWN8d+PCU3vwiXsgi6RRLA0PW4w==","signatures":[{"sig":"MEQCIF+F9o9O/WlBZXPiXDZlz3XUDmHRspx57u3wvFUwoyHvAiBaNB2odXFCerAwJyM+X1KapbQFOvyBx8v4rwv357pM5w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":12046},"type":"module","types":"./dist/index.d.ts","exports":{".":"./dist/index.js","./package.json":"./package.json"},"gitHead":"a2a4ed50dd21967dccb2b18a570cc5a71a61c8ca","scripts":{"build":"npm run clear && at-scripts create-pkg-name && at-scripts build && tsc -p tsconfig.build.json","clear":"rm -rf ./dist"},"_npmUser":{"name":"jakichen","email":"JakiChen@live.cn"},"deprecated":"This package is deprecated. Please migrate to astro-svgs: https://www.npmjs.com/package/astro-svgs","repository":{"url":"git+https://github.com/ACP-CODE/astro-svg-sprite.git","type":"git"},"_npmVersion":"9.8.1","description":"This is a zero-dependency Astro Integration that generates a `sprite.svg` from SVG files in your Astro project.","directories":{},"_nodeVersion":"18.16.1","_hasShrinkwrap":false,"devDependencies":{"astro":"^2.10.5","at-scripts":"file:scripts"},"_npmOperationalInternal":{"tmp":"tmp/astro-svg-sprite_0.8.25_1693478289511_0.766366068718094","host":"s3://npm-registry-packages"}},"1.0.0":{"name":"astro-svg-sprite","version":"1.0.0","keywords":["withastro","astro-integration","astro","astro-component","astro-sprite-component","sprite","genertate sprite.svg","sprite svg","svg-sprite","SVG Sprite","spriter"],"author":{"name":"Junlin"},"license":"MIT","_id":"astro-svg-sprite@1.0.0","maintainers":[{"name":"jakichen","email":"JakiChen@live.cn"}],"homepage":"https://github.com/ACP-CODE/astro-svg-sprite#readme","bugs":{"url":"https://github.com/ACP-CODE/astro-svg-sprite/issues"},"dist":{"shasum":"d1f043ebfbcf9b549a5200771486c496775e1bc8","tarball":"https://registry.npmjs.org/astro-svg-sprite/-/astro-svg-sprite-1.0.0.tgz","fileCount":4,"integrity":"sha512-2WApTDmNjP6u/Ofxd3BYPzG6dBkxl15gI2ygGHFTcDnwNsEQNL3S12NxVluxhtIXq352L13s00re+dAnE742EQ==","signatures":[{"sig":"MEUCIGW4zwlI5qVCha9YorcA6XYYl4FhWnEScF2rAvEnAuMsAiEAiRf9CDchXRdnNevtwalUL8V3pfFkrM3lmK1MC7coVHw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11989},"type":"module","types":"./dist/index.d.ts","exports":{".":"./dist/index.js","./package.json":"./package.json"},"gitHead":"bfb51cbaa124934f1c778c51111c0d96147dbd87","scripts":{"build":"npm run clear && at-scripts create-pkg-name && at-scripts build && tsc -p tsconfig.build.json","clear":"rm -rf ./dist"},"_npmUser":{"name":"jakichen","email":"JakiChen@live.cn"},"deprecated":"This package is deprecated. Please migrate to astro-svgs: https://www.npmjs.com/package/astro-svgs","repository":{"url":"git+https://github.com/ACP-CODE/astro-svg-sprite.git","type":"git"},"_npmVersion":"9.6.7","description":"A zero-dependency Astro Integration that generates a `sprite.svg` from SVG files in your Astro project.","directories":{},"_nodeVersion":"18.17.1","_hasShrinkwrap":false,"devDependencies":{"astro":"^2.10.3","typescript":"^5.2.2"},"_npmOperationalInternal":{"tmp":"tmp/astro-svg-sprite_1.0.0_1694099493135_0.5210586958319166","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"astro-svg-sprite","version":"1.0.1","keywords":["withastro","astro-integration","astro","astro-component","astro-sprite-component","sprite","genertate sprite.svg","sprite svg","svg-sprite","SVG Sprite","spriter"],"author":{"name":"Junlin"},"license":"MIT","_id":"astro-svg-sprite@1.0.1","maintainers":[{"name":"jakichen","email":"JakiChen@live.cn"}],"homepage":"https://github.com/ACP-CODE/astro-svg-sprite#readme","bugs":{"url":"https://github.com/ACP-CODE/astro-svg-sprite/issues"},"dist":{"shasum":"7d49ccc7c0ccddff965304f88eb9ead5a4f90f39","tarball":"https://registry.npmjs.org/astro-svg-sprite/-/astro-svg-sprite-1.0.1.tgz","fileCount":4,"integrity":"sha512-bpxSsxcuZUml815K2KPfITctzesFG4CUMgRx1rgxTnRmE9OyLo7MHvv2wNHM5PXGi0qOfQOv0iULos+d8k9jbg==","signatures":[{"sig":"MEYCIQCUsOIzRvroSxkxilUBO8zCN/q8N2whWz9WW+6iBhMgSwIhAPCciRkMh1EbKtEWr0ikcs0jiNCcUq4yiPaMuNnopoLs","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11929},"type":"module","types":"./dist/index.d.ts","exports":{".":"./dist/index.js","./package.json":"./package.json"},"gitHead":"812d29fac600484db6efb59d93fe79ba6430d46f","scripts":{"build":"npm run clear && at-scripts create-pkg-name && at-scripts build && tsc -p tsconfig.build.json","clear":"rm -rf ./dist"},"_npmUser":{"name":"jakichen","email":"JakiChen@live.cn"},"deprecated":"This package is deprecated. Please migrate to astro-svgs: https://www.npmjs.com/package/astro-svgs","repository":{"url":"git+https://github.com/ACP-CODE/astro-svg-sprite.git","type":"git"},"_npmVersion":"9.6.7","description":"A zero-dependency Astro Integration that generates a `sprite.svg` from SVG files in your Astro project.","directories":{},"_nodeVersion":"18.17.1","_hasShrinkwrap":false,"devDependencies":{"astro":"^2.10.3","typescript":"^5.2.2"},"_npmOperationalInternal":{"tmp":"tmp/astro-svg-sprite_1.0.1_1694142653248_0.0868807648988521","host":"s3://npm-registry-packages"}},"1.0.3":{"name":"astro-svg-sprite","version":"1.0.3","keywords":["withastro","astro-integration","astro","astro-component","astro-sprite-component","sprite","genertate sprite.svg","sprite svg","svg-sprite","SVG Sprite","spriter"],"author":{"name":"Junlin"},"license":"MIT","_id":"astro-svg-sprite@1.0.3","maintainers":[{"name":"jakichen","email":"JakiChen@live.cn"}],"homepage":"https://github.com/ACP-CODE/astro-svg-sprite#readme","bugs":{"url":"https://github.com/ACP-CODE/astro-svg-sprite/issues"},"dist":{"shasum":"a4efff0d7fb5d75e4ac64deb3f25ad8bc844f4fc","tarball":"https://registry.npmjs.org/astro-svg-sprite/-/astro-svg-sprite-1.0.3.tgz","fileCount":4,"integrity":"sha512-bo2yC9wKAuIxIRGttEWqj+03iDYi3aXZg0XWP8TjAoFzNXLeAbpGa6ep/Ga92j6C+FnV9qe0T7QHr/0/iW9LqQ==","signatures":[{"sig":"MEUCIGjawN+iUOFDzNMw9im7N+yQtHzQ3nG7IzQZ42GsfpSEAiEA+PD5wnfFLjqH+peGnH+DVikpaCjETPYgUOc+zbercIQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":12482},"type":"module","types":"./dist/index.d.ts","exports":{".":"./dist/index.js","./package.json":"./package.json"},"gitHead":"c88c023e70e94c8669146e8a58015c5e1c351279","scripts":{"build":"npm run clear && at-scripts create-pkg-name && at-scripts build && tsc -p tsconfig.build.json","clear":"rm -rf ./dist"},"_npmUser":{"name":"jakichen","email":"JakiChen@live.cn"},"deprecated":"This package is deprecated. Please migrate to astro-svgs: https://www.npmjs.com/package/astro-svgs","repository":{"url":"git+https://github.com/ACP-CODE/astro-svg-sprite.git","type":"git"},"_npmVersion":"10.1.0","description":"A zero-dependency Astro Integration that generates a `sprite.svg` from SVG files in your Astro project.","directories":{},"_nodeVersion":"18.17.1","_hasShrinkwrap":false,"devDependencies":{"astro":"^2.10.3","typescript":"^5.2.2"},"_npmOperationalInternal":{"tmp":"tmp/astro-svg-sprite_1.0.3_1694395520609_0.31060162597693197","host":"s3://npm-registry-packages"}},"1.0.5":{"name":"astro-svg-sprite","version":"1.0.5","keywords":["withastro","astro-integration","astro","astro-component","astro-sprite-component","sprite","genertate sprite.svg","sprite svg","svg-sprite","SVG Sprite","spriter"],"author":{"name":"Junlin"},"license":"MIT","_id":"astro-svg-sprite@1.0.5","maintainers":[{"name":"jakichen","email":"JakiChen@live.cn"}],"homepage":"https://github.com/ACP-CODE/astro-svg-sprite#readme","bugs":{"url":"https://github.com/ACP-CODE/astro-svg-sprite/issues"},"dist":{"shasum":"ab172f80aa56128a12d403dc4973d4dfc33d7d25","tarball":"https://registry.npmjs.org/astro-svg-sprite/-/astro-svg-sprite-1.0.5.tgz","fileCount":4,"integrity":"sha512-sRLMuCSmDp/vEqV6MCcBq/75mRVj5gD2r6+L2TRI92qN2Ub4a5Ek1nxbIniPCJ7daNOag/O59r+qpoGeG/0pdA==","signatures":[{"sig":"MEUCIQD9jTWQm0MJ4zyb2rbEYtS0+Pptl65cjy2SM4n4j4RMNgIgFxc1PFOAn83MnN0zIxgEAhj7h6qqhKsQV3ZdGsYYvdk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":12535},"type":"module","types":"./dist/index.d.ts","exports":{".":"./dist/index.js","./package.json":"./package.json"},"gitHead":"ce488512c86a855e144a056e72f29196b114eebf","scripts":{"build":"npm run clear && at-scripts create-pkg-name && at-scripts build && tsc -p tsconfig.build.json","clear":"rm -rf ./dist"},"_npmUser":{"name":"jakichen","email":"JakiChen@live.cn"},"deprecated":"This package is deprecated. Please migrate to astro-svgs: https://www.npmjs.com/package/astro-svgs","repository":{"url":"git+https://github.com/ACP-CODE/astro-svg-sprite.git","type":"git"},"_npmVersion":"10.1.0","description":"A zero-dependency Astro Integration that generates a `sprite.svg` from SVG files in your Astro project.","directories":{},"_nodeVersion":"18.17.1","_hasShrinkwrap":false,"devDependencies":{"astro":"^2.10.3","typescript":"^5.2.2"},"_npmOperationalInternal":{"tmp":"tmp/astro-svg-sprite_1.0.5_1695205241661_0.5998116611407363","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"astro-svg-sprite","version":"1.1.0","keywords":["withastro","astro-integration","astro","astro-component","astro-sprite-component","sprite","genertate sprite.svg","sprite svg","svg-sprite","SVG Sprite","spriter"],"author":{"name":"Junlin"},"license":"MIT","_id":"astro-svg-sprite@1.1.0","maintainers":[{"name":"jakichen","email":"JakiChen@live.cn"}],"homepage":"https://github.com/ACP-CODE/astro-svg-sprite#readme","bugs":{"url":"https://github.com/ACP-CODE/astro-svg-sprite/issues"},"dist":{"shasum":"b345a5679aa76030cc6e077f7e8f49365559851a","tarball":"https://registry.npmjs.org/astro-svg-sprite/-/astro-svg-sprite-1.1.0.tgz","fileCount":4,"integrity":"sha512-EYI+avdexdPWsNdhFcwP/2GzRtS3YTHorQJVC/9Fwg0rYHPaEh3O7QHIABsSQ/VbkDVa+pF7udY1Jke/V/5qUw==","signatures":[{"sig":"MEUCIFs1w5Ozbjwj0edAzV9Nf1pWvhR5twjNfqsGcRdzQujIAiEAzLsKkhgodOPAZWpMa2osmJr3+2FSbKwEMDTToq8+pB8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":12892},"type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"c6568325c325745026b59f3d0f6002d1bff5330a","scripts":{"build":"npm run clear && at-scripts create-pkg-name && at-scripts build && tsc -p tsconfig.build.json","clear":"rm -rf ./dist"},"_npmUser":{"name":"jakichen","email":"JakiChen@live.cn"},"deprecated":"This package is deprecated. Please migrate to astro-svgs: https://www.npmjs.com/package/astro-svgs","repository":{"url":"git+https://github.com/ACP-CODE/astro-svg-sprite.git","type":"git"},"_npmVersion":"10.1.0","description":"A zero-dependency Astro Integration that generates a `sprite.svg` from SVG files in your Astro project.","directories":{},"_nodeVersion":"18.17.1","_hasShrinkwrap":false,"devDependencies":{"astro":"^2.10.3","typescript":"^5.2.2"},"_npmOperationalInternal":{"tmp":"tmp/astro-svg-sprite_1.1.0_1696080301717_0.9138035752270792","host":"s3://npm-registry-packages"}}},"time":{"created":"2023-08-17T15:11:26.254Z","modified":"2024-11-25T02:13:45.745Z","0.8.20":"2023-08-16T06:27:27.074Z","0.8.21":"2023-08-16T06:50:11.026Z","0.8.21-b1":"2023-08-16T08:00:35.139Z","0.8.22":"2023-08-16T08:09:48.107Z","0.8.2-1.0":"2023-08-16T08:25:00.723Z","0.8.21-0.0":"2023-08-16T08:26:41.320Z","0.8.21-0.0.0":"2023-08-16T09:24:21.290Z","0.8.21-0.1":"2023-08-16T09:36:16.423Z","0.8.21-0.2":"2023-08-16T09:51:17.490Z","0.8.21-0.3":"2023-08-16T09:53:43.168Z","0.8.21-0.3.1":"2023-08-16T09:55:20.493Z","0.8.21-0.4":"2023-08-16T09:57:38.344Z","0.8.21-0.6":"2023-08-17T15:11:26.465Z","0.8.21-0.7":"2023-08-18T10:32:54.760Z","0.8.21-0.8":"2023-08-18T13:23:57.449Z","0.8.21-0.8.1":"2023-08-19T00:16:30.791Z","0.8.23":"2023-08-31T00:36:16.602Z","0.8.24":"2023-08-31T10:35:00.313Z","0.8.25":"2023-08-31T10:38:09.674Z","1.0.0":"2023-09-07T15:11:33.391Z","1.0.1":"2023-09-08T03:10:53.573Z","1.0.2":"2023-09-11T01:13:39.302Z","1.0.3":"2023-09-11T01:25:20.819Z","1.0.4":"2023-09-20T05:38:49.726Z","1.0.5":"2023-09-20T10:20:41.883Z","1.1.0":"2023-09-30T13:25:01.916Z"},"bugs":{"url":"https://github.com/ACP-CODE/astro-svg-sprite/issues"},"author":{"name":"Junlin"},"license":"MIT","homepage":"https://github.com/ACP-CODE/astro-svg-sprite#readme","keywords":["withastro","astro-integration","astro","astro-component","astro-sprite-component","sprite","genertate sprite.svg","sprite svg","svg-sprite","SVG Sprite","spriter"],"repository":{"url":"git+https://github.com/ACP-CODE/astro-svg-sprite.git","type":"git"},"description":"A zero-dependency Astro Integration that generates a `sprite.svg` from SVG files in your Astro project.","maintainers":[{"name":"jakichen","email":"JakiChen@live.cn"}],"readme":"<div align=\"center\">\n\n**Latest Updates! 🎉 See the [change log](./CHANGELOG.md) for details.**\n\n<img height=\"142\" alt=\"\" src=\"./assets/logo.svg\">\n\n# stro-svg-sprite\n\nA zero-dependency [Astro Integration](https://docs.astro.build/en/guides/integrations-guide/) that generates a sprite.svg from SVG files in your Astro project.\n\n</div>\n\n## Installation\n\n> This package is compatible with Astro 2.0 and above, which support the Integrations API.\n\nTo automate the installation, use the `astro add` command-line tool. You can initialize it via `npx`, `yarn`, or `pnpm` based on your preference.\n\n```sh\nnpx astro add astro-svg-sprite\n```\n\nAlternatively, you can manually install it by running the following command in your terminal:\n\n```sh\nnpm install astro-svg-sprite\n```\n\n## Usage\n\n<details>\n<summary id=\"#getting-started\"><b>Getting Started</b></summary>\n<br>\n\nAdd astro-svg-sprite to your `astro.config.*` file:\n\n```ts\n// astro.config.mjs\nimport { defineConfig } from \"astro/config\";\nimport svgSprite from \"astro-svg-sprite\";\n\nexport default defineConfig({\n  integrations: [svgSprite()],\n});\n```\n\nStore the SVG files to be used for the generated `sprite.svg` in the `src/assets/images/sprite` directory.\n\n```\n/\n├── astro.config.mjs\n├── public\n|   └── assets\n|       └── images\n|           └── sprite.svg\n├── src\n|   └── assets\n|       └── images\n|           └── sprite\n|               └── 1.svg\n|               └── 2.svg\n|               └── *.svg\n├── tsconfig.json\n├── package.json\n```\n\nGenerating the `sprite.svg` on build:\n\n```sh\nnpm run dev\n```\n\nor\n\n```sh\nnpm run build\n```\n\nThe `sprite.svg` will be output to `public/assets/images` directory.\n\n<img width=\"100%\" alt=\"\" src=\"./assets/astro-svg-sprite.svg\" >\n\nTo use the generated `sprite.svg` file, create a `Sprite` component at `components/Sprite.astro`:\n\n```astro\n---\nexport interface props {\n  name: string;\n}\n\nconst { class:className, name } = Astro.props;\n---\n<svg class={className}>\n  <use xlink:href=`${Astro.site}assets/images/sprite.svg#${name}`></use>\n</svg>\n```\n\nThen call the `Sprite.astro` component on other pages.\n\n```astro\n---\nimport Sprite from 'components/Sprite.astro'\n---\n<Sprite name=\"fileName\" class=\"customClassName\"/>\n```\n\n</details>\n\n<details>\n<summary><b>Advanced</b></summary>\n<br>\n\nHere is an example of an advanced full configuration. With the help of [JSDoc](./dist/index.d.ts), you can easily configure it.\n\n```ts\n// astro.config.mjs\nimport { defineConfig } from \"astro/config\";\nimport svgSprite from \"astro-svg-sprite\";\n\nexport default defineConfig({\n  integrations: [\n    svgSprite({\n      mode: \"verbose\",\n      include: [\n        \"./src/assets/images/sprite\",\n        \"./src/assets/images\",\n        \"./src/assets\",\n      ],\n      emitFile: {\n        compress: \"standard\",\n        path: \"assets/images\",\n      },\n    }),\n  ],\n});\n```\n\n> **Note:** `emitFile.compress` recommends using the default `standard` mode. The `best` mode will convert some svg tags into path tags.\n\n</details>\n\n## Need Help or Feedback?\n\nSubmit your issues or feedback on our [GitHub](https://github.com/ACP-CODE/astro-svg-sprite/issues) channel.\n\n## Changelog\n\nSee [CHANGELOG.md](CHANGELOG.md) for a history of changes to this Integration.\n","readmeFilename":"README.md"}