{"_id":"@alexfromearth/vite-plugin-svg-sprite","_rev":"3-9863fbd19c5cd3a5efbd5baf4155ba98","name":"@alexfromearth/vite-plugin-svg-sprite","dist-tags":{"latest":"0.0.2"},"versions":{"0.2.6":{"name":"@alexfromearth/vite-plugin-svg-sprite","version":"0.2.6","description":" Forked SVG sprite plugin for Vite","main":"lib/index.js","types":"lib/index.d.ts","exports":{".":{"import":"./index.mjs","require":"./lib/index.js"},"./runtime":"./es/runtime.js"},"scripts":{"lint":"eslint src","build":"tsc && npx tsc -m es2015 --outDir es","prepublish":"npm run build"},"keywords":["vite","svg"],"author":{"name":"meowtec","email":"bertonzh@gmail.com"},"homepage":"https://github.com/meowtec/vite-plugin-svg-sprite","bugs":{"url":"https://github.com/meowtec/vite-plugin-svg-sprite/issues"},"license":"MIT","devDependencies":{"@types/micromatch":"^4.0.1","@types/node":"^14.14.21","@types/svgo":"^1.3.3","@typescript-eslint/eslint-plugin":"^4.8.2","eslint":"^7.14.0","eslint-config-airbnb-typescript":"^12.0.0","eslint-plugin-import":"^2.22.1","typescript":"^4.1.2","vite":"^2.3.6"},"dependencies":{"micromatch":"^4.0.2","svg-baker":"~1.7.0","svgo":"^1.3.2"},"peerDependencies":{"vite":"^2 || ^3"},"gitHead":"3f6c8b9b5a6537fbb288d1fa7df14be0443b05e6","_id":"@alexfromearth/vite-plugin-svg-sprite@0.2.6","_nodeVersion":"14.19.3","_npmVersion":"6.14.17","dist":{"integrity":"sha512-AD9ZnMBKv1pIes1K775dW/zxhK1RotdbGSbNQ5ccRC9WD2gKz59TT3DOWPYvvnUEDXL2CPYkEazpF75S1dUVnw==","shasum":"cde338c8d10ecd716fb0f74888a55dfcb5c8f288","tarball":"https://registry.npmjs.org/@alexfromearth/vite-plugin-svg-sprite/-/vite-plugin-svg-sprite-0.2.6.tgz","fileCount":14,"unpackedSize":13082,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCGmlSWZLleG0sYoFLdC8j2lpQLTViEyxgFN/1whpvfRQIhAI47gHt1qFgS03mMNE+k6HqZeb9huqN9m9ySVR5Hx8aX"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjHwPyACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoMgQ//e+NBNISOFa1TOQGWRC6tpM/LfOTdQip1HMpFCTgr0+SBy/jS\r\npTOqwrwTqYEAfDT7GhID5dZN1uzSeNWMWBS2afOjSmJiERQ/Jhxlj7wnGMWL\r\ntAzmA6Wq69ITetoHFoUsGwu066LKzVMaPJOBTzm2CF/R61Vj9hkMzX4MEk6I\r\nQXZ6ETXVMrleby4OMCczs2C2yJB3IwmMXC8G8d1pUgJify5qoCbjyi8S74vu\r\nA4KlMPmvYqL5Hig7yfhkNepkzuZjmRtJyM1PszjNk6QtuPNkRArDh0J8Qrcm\r\nu+FbWH5z21biAnX2s854AS8f4DWVF/K/8Ez4VZH3vZ2p9h1o1XBbNtLYEOaU\r\nSLIbjhlm40WEABY4ugUpxJjqf1n2N2Zx+Pn8mIzMzis3rI6+uMoA23rsWpg2\r\nR4DZy/v8OdVpxNJmqN06UaJVW1WdhmLhg4MPTp3UhD28+JAD/Ydnn7dGD5f+\r\nes63AY3O3dGpxwUYFQJyLeLZAKNVYyPue2avaYhT7bENPAp0mI3bR0+RcJTu\r\nPby9XX2ZNh32Yi/bCzZapufFESxirIXf6J2OyCjrgP/Rc7SRBne+7P5Sicyt\r\nvWsO4965V6svtwASeq7mHvjK5UB8PjkPxbXlf7VzA42rDEfZ3Ca9vt9IUGHb\r\nLyrBP7ckQbj38hQw0g1WeoOi8r6VQkvWcpQ=\r\n=x+C/\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"alexfromearth","email":"shirokovaloff@gmail.com"},"directories":{},"maintainers":[{"name":"alexfromearth","email":"shirokovaloff@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vite-plugin-svg-sprite_0.2.6_1662977010126_0.8886137579998132"},"_hasShrinkwrap":false},"0.2.7":{"name":"@alexfromearth/vite-plugin-svg-sprite","version":"0.2.7","description":" Forked SVG sprite plugin for Vite","main":"lib/index.js","types":"lib/index.d.ts","exports":{".":{"import":"./index.mjs","require":"./lib/index.js"},"./runtime":"./es/runtime.js"},"scripts":{"lint":"eslint src","build":"tsc && npx tsc -m es2015 --outDir es","prepublish":"npm run build"},"keywords":["vite","svg"],"author":{"name":"meowtec","email":"bertonzh@gmail.com"},"homepage":"https://github.com/meowtec/vite-plugin-svg-sprite","bugs":{"url":"https://github.com/meowtec/vite-plugin-svg-sprite/issues"},"license":"MIT","devDependencies":{"@types/micromatch":"^4.0.1","@types/node":"^14.14.21","@types/svgo":"^1.3.3","@typescript-eslint/eslint-plugin":"^4.8.2","eslint":"^7.14.0","eslint-config-airbnb-typescript":"^12.0.0","eslint-plugin-import":"^2.22.1","typescript":"^4.1.2","vite":"^2.3.6"},"dependencies":{"micromatch":"^4.0.2","svg-baker":"~1.7.0","svgo":"^1.3.2"},"peerDependencies":{"vite":"^2 || ^3"},"gitHead":"1ff28e0cd3b8bfa7a2551781c915f7fa1bf18059","_id":"@alexfromearth/vite-plugin-svg-sprite@0.2.7","_nodeVersion":"14.19.3","_npmVersion":"6.14.17","dist":{"integrity":"sha512-tE4UhvjtL0ikOaE4jh2XhNARGZ7uBghf2u935q75NUaLOSc+NUaTvExqzXOYetJR3Do6y5UIPFPYx8AoSpSjSA==","shasum":"8b4e6cf274a66f8d6166d64597f759d9e9af227b","tarball":"https://registry.npmjs.org/@alexfromearth/vite-plugin-svg-sprite/-/vite-plugin-svg-sprite-0.2.7.tgz","fileCount":14,"unpackedSize":13187,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH4DyY6RuexV6lNb33F/VZAu6xu2aUS7AdvNIByRLKUFAiB5kF3NFBGJ18UqwRMVeTNkh3+9oFYk4tCWLPdDTDe6+Q=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjHwUGACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrxDg//eXvLQGP6e+RdmUpUbgLfIWml9KbcdyfiLWILLNP6wRUbHhXc\r\nf42n/P2TA59vZlTf7TRdDkm9nWCsyA0bUkQ75DGKAQrd7QmZua/saeEfJqju\r\nTW/XkjUxoDp4fiUkem2ZDP1htmnejx7n+3eZrdYobmAPCOa9he0ZfrWQT7Mk\r\nW2pEcI06U4Wklsu13wCKJoREU9dE5UGI1dxPKKlR4qE6ASZudn739fHbGYf8\r\nuIWHxq9vhtGfLOUh0ju+e7AbupevRBZlOcbmhA7A73UxoVQe67XFweOxBmAS\r\nLPyN907x0TNJLIP4QiZDiOBC7FozPW83cZxoUGtKZ1VBrC8jKIaPU+hUvCSx\r\nTTKZ9qB0aDnZ1/sE4ZaVbQfrUn5l3//3sr6W8+C3CMbTOtnBe3zeWYtDEbrF\r\n2u/K1GPdreGp70x3fhgxlveEx80EoZIFPKXBuHkPdqzwDCttJAsYE2qkZwi0\r\n57GGMM+0rn36ICl3hfnOMK9u5IzW4EXFi+brU9Xk2f4uLLoUH1iiRe4wtOuy\r\nHIEqBE5JXVFRKutKFcjz6xx1Zrq7iJzbYZoLrDpEBZs/51us67vtacRJ3y54\r\nf7e2skYojtkBOEKSfYLa4BXgYhWQGZUqAnMhYEROrWzquSMTMOEQYM81zXJP\r\nZDi2Y8+clfgz208DqwW5jCJpuiccNcr2KNY=\r\n=Erop\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"alexfromearth","email":"shirokovaloff@gmail.com"},"directories":{},"maintainers":[{"name":"alexfromearth","email":"shirokovaloff@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vite-plugin-svg-sprite_0.2.7_1662977286528_0.056205942251660757"},"_hasShrinkwrap":false},"0.0.1":{"name":"@alexfromearth/vite-plugin-svg-sprite","version":"0.0.1","description":" Forked SVG sprite plugin for Vite","main":"lib/index.js","types":"lib/index.d.ts","exports":{".":{"import":"./index.mjs","require":"./lib/index.js"},"./runtime":"./es/runtime.js"},"scripts":{"lint":"eslint src","build":"tsc && npx tsc -m es2015 --outDir es","prepublish":"npm run build"},"keywords":["vite","svg"],"author":{"name":"meowtec","email":"bertonzh@gmail.com"},"homepage":"https://github.com/meowtec/vite-plugin-svg-sprite","bugs":{"url":"https://github.com/meowtec/vite-plugin-svg-sprite/issues"},"license":"MIT","devDependencies":{"@types/micromatch":"^4.0.1","@types/node":"^14.14.21","@types/svgo":"^1.3.3","@typescript-eslint/eslint-plugin":"^4.8.2","eslint":"^7.14.0","eslint-config-airbnb-typescript":"^12.0.0","eslint-plugin-import":"^2.22.1","typescript":"^4.1.2","vite":"^2.3.6"},"dependencies":{"micromatch":"^4.0.2","svg-baker":"~1.7.0","svgo":"^1.3.2"},"peerDependencies":{"vite":"^2 || ^3"},"gitHead":"ac9cd1f3c366fd66a3ffcd7bf5b00a7e02f2cf04","_id":"@alexfromearth/vite-plugin-svg-sprite@0.0.1","_nodeVersion":"14.19.3","_npmVersion":"6.14.17","dist":{"integrity":"sha512-T1W1ZeNkh1svYL1ERYlLsKWklRKEdloqzg7/WuVC3QTAz1mkGYiHczz3fbbQwpkGEy6Bir17poBzBweqdBoWeg==","shasum":"d06f539950d904bbbe61c7f1a01743f68e6fb61c","tarball":"https://registry.npmjs.org/@alexfromearth/vite-plugin-svg-sprite/-/vite-plugin-svg-sprite-0.0.1.tgz","fileCount":14,"unpackedSize":13232,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGdB1rx+TJIZkW4zGB6SVeglRxdhRjFwd0u3VpBYp8CrAiEA+UjX+zw8Mik639embUO0ns5XOW2R05iz5Vf1DYsGSjw="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjHwbfACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpZzg/9GNk4/6e5AXFNLZAc9eK2ibqxmyqON9UK2dr3Zbc6y03iM8fp\r\nGWYxMdhGB3fUEVFzVn49Q/aqav1as8hxXw0DAKz949Z2jpkaxp8RV4U/t8+r\r\n8xdGnd0J2Pt5tfSuccKCsUtX9XzKBg3V8HP9ZGy5tPRaM2H8uqwta/qG2wIh\r\nW/+vto8f1HunMGR4wZhXJopCDmFvCivLMS8HJX+UZfeKa9qmxsPgnC0cbmBD\r\n+ezE1+PqZofb29BVsg456klOy7ie+AAJRdbbRtBd3f2Nm8AmFQ5+AnEz+y8W\r\nxQTwUed5bqq7RpHkNduaLJ4msYlusScp/PJfXoEdiXoMFDuFYHKI9YQvijSv\r\n51O0MLSFtqWPTOWfgUVCeZtklbUkcOUn/FcHCuZo3g4wWdI323fOU5myqRZs\r\nhZF2EqKjCHY93o1EBJ6UwHDbOPzwb73HKCAJoRYhtw73jvLTD476IRV+c6/b\r\nhsZ8TeKRZDfly51bruTLtFTYEp4yklYGLCB8WqHneqX47vHw7e5zLp17MSVe\r\naKCThR/MSVSaxFMSXB1m0+Np+X29zojAIzl+/JKlN4uVsJMv+6uJVhYzaaCJ\r\n4ewfpBh0P3Kuz47R6NMtxpg1FEW+egYAMhJ3V8q1u4FF2b8p10AnJtHiMsyr\r\nxFAgcZuhocQObUkeq4+uxVVnuO4tImhnswc=\r\n=KvFS\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"alexfromearth","email":"shirokovaloff@gmail.com"},"directories":{},"maintainers":[{"name":"alexfromearth","email":"shirokovaloff@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vite-plugin-svg-sprite_0.0.1_1662977759189_0.5544548723130633"},"_hasShrinkwrap":false},"0.0.2":{"name":"@alexfromearth/vite-plugin-svg-sprite","version":"0.0.2","description":" Forked SVG sprite plugin for Vite","main":"lib/index.js","types":"lib/index.d.ts","exports":{".":{"import":"./index.mjs","require":"./lib/index.js"},"./runtime":"./es/runtime.js"},"scripts":{"lint":"eslint src","build":"tsc && npx tsc -m es2015 --outDir es","prepublish":"npm run build"},"keywords":["vite","svg"],"author":{"name":"meowtec","email":"bertonzh@gmail.com"},"homepage":"https://github.com/meowtec/vite-plugin-svg-sprite","bugs":{"url":"https://github.com/meowtec/vite-plugin-svg-sprite/issues"},"license":"MIT","devDependencies":{"@types/micromatch":"^4.0.1","@types/node":"^14.14.21","@types/svgo":"^1.3.3","@typescript-eslint/eslint-plugin":"^4.8.2","eslint":"^7.14.0","eslint-config-airbnb-typescript":"^12.0.0","eslint-plugin-import":"^2.22.1","typescript":"^4.1.2","vite":"^2.3.6"},"dependencies":{"micromatch":"^4.0.2","svg-baker":"~1.7.0","svgo":"^1.3.2"},"peerDependencies":{"vite":"^2 || ^3"},"gitHead":"d20e9d56cecf6c7731150a88ba75b4938b2b30b9","_id":"@alexfromearth/vite-plugin-svg-sprite@0.0.2","_nodeVersion":"14.19.3","_npmVersion":"6.14.17","dist":{"integrity":"sha512-zO884q7JYu5PDuNJzS14saBgE0kvu1JnEyNGeZw7r16YiX9sekq5wV9EPLkOvfMgIpW23fsli+rnLsynCQFSHQ==","shasum":"b008384a1fb75f65c9bf16026e571c975e17d23b","tarball":"https://registry.npmjs.org/@alexfromearth/vite-plugin-svg-sprite/-/vite-plugin-svg-sprite-0.0.2.tgz","fileCount":14,"unpackedSize":13703,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICf9Ef1TLesKr5xKgd32176UrCcAB/CA0bvw++mIO0yKAiEAnM4C8QWZSm9zEFDD0JAgx3pE5lCthzsVcSuVH4M+c7k="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjHw3GACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmponhAAlkE42rAqL1Ih7kIduU8tWM4zzp8HogZO8aqLoN0Kedk/YbKT\r\n8gRNgpaQ66ZQMbArpCAom/uuL9/Hj3ckCMQUqjQ3bx2fpfF1DjL7Ky4z/m+V\r\ndmN8OEa2J7zBjlkWvrqijkmrlMZnMSS89zj54o5i1SA084pRmkR4AqodIbwC\r\nPcWwxCGMvEm22x65ylFmOS/AH+HpjKXIA6WCtHO0hi9AJYr6YRryLy/ixSWJ\r\nukfgF9MaQZ+nMNTtj2aFUaA2E+LECi44TROx0vj/ceAMErtWNOgUrxgdWqJo\r\nZRjR1iytU+B7/Va78WioS+QQGyhn0K6YZakwPYBfa17xXM7jgpGxseUkULOl\r\nYbTv8b/ti1qbAen6PuA32eJHLn6+5iSocQj8hAqzgSBdFgWy49wZpKKyTYKD\r\nyVFIjuaog7zb5Xy7bjbI8Ed+xiM1m5EKgzfHyuiP5IBXGY7lgyfDC/KWhLlu\r\nx4qiLlTL+EGW8ZHdzXN9RKI5G0dmj7r6tCIX+EKHdMYU8Wma8dcs3E0NUNmN\r\nm7fLiSTJgV/Hj7FcAFnJ+aRpVtIWzN3e7EbOGdBiPu5mbl9BzTaXHF886OTZ\r\nynZTeHLBe6HlfoXai370DRMYjssJFwlXrRUoBuFdqE2mTt4xc7C70byCi7Li\r\nPzEEl8UpByTcxyU8uKZ438N5JaA1FlQeTX4=\r\n=wuLW\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"alexfromearth","email":"shirokovaloff@gmail.com"},"directories":{},"maintainers":[{"name":"alexfromearth","email":"shirokovaloff@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vite-plugin-svg-sprite_0.0.2_1662979526230_0.6155735491015946"},"_hasShrinkwrap":false}},"time":{"created":"2022-09-12T10:03:30.067Z","0.2.6":"2022-09-12T10:03:30.305Z","modified":"2022-09-12T10:45:26.513Z","0.2.7":"2022-09-12T10:08:06.735Z","0.0.1":"2022-09-12T10:15:59.353Z","0.0.2":"2022-09-12T10:45:26.402Z"},"maintainers":[{"name":"alexfromearth","email":"shirokovaloff@gmail.com"}],"description":" Forked SVG sprite plugin for Vite","homepage":"https://github.com/meowtec/vite-plugin-svg-sprite","keywords":["vite","svg"],"author":{"name":"meowtec","email":"bertonzh@gmail.com"},"bugs":{"url":"https://github.com/meowtec/vite-plugin-svg-sprite/issues"},"license":"MIT","readme":"# vite-plugin-svg-sprite\nFork of https://github.com/meowtec/vite-plugin-svg-sprite, adds ability to pass a function to `symbolId`\nSVG sprite plugin for [Vite](https://github.com/vitejs/vite)\n\n## install\n```\nnpm i vite-plugin-svg-sprite -D\n```\n\n## Usage\nvite.config.js:\n\n```javascript\nimport createSvgSpritePlugin from 'vite-plugin-svg-sprite';\n\nconst config = {\n  plugins: [\n    createSvgSpritePlugin({\n      symbolId: 'icon-[name]-[hash]',\n    }),\n  ],\n}\n```\n\napp code:\n```javascript\nimport appIconId from './path/to/icons/app.svg';\n\n// react or vue component, as you want\nexport default function App() {\n  return (\n    <svg>\n      <use\n        xlinkHref={`#${appIconId}`}\n      />\n    </svg>\n  );\n}\n```\n\n## options\n\n```javascript\nconst plugin = createSvgSpritePlugin(options);\n```\n\n### `options.symbolId: string`\n\nFor generating the `id` attribute of `<symbol>` element. Defaults to `[name]`\n\n### `options.include: string | string[]`\n\nMatch files that will be transformed. Defaults to `'**.svg'`. See [micromatch](https://github.com/micromatch/micromatch) for the syntax document.\n\n### `options.svgo: boolean | SvgoOptions`\n\nEnable [SVGO](https://github.com/svg/svgo) for optimizing SVG. Defaults to `true`.\n","readmeFilename":"README.md"}