{"_id":"@svg-use/core","_rev":"7-d0fa4e0f1a9985a38735dc999c2604bb","name":"@svg-use/core","dist-tags":{"latest":"1.0.0"},"versions":{"0.1.0":{"name":"@svg-use/core","version":"0.1.0","keywords":["loader","performance","plugin","svg"],"author":{"url":"https://fotis.xyz","name":"Fotis Papadogeorgopoulos","email":"fotis@fpapado.com"},"license":"MIT","_id":"@svg-use/core@0.1.0","maintainers":[{"name":"fpapado","email":"fotis@fpapado.com"}],"homepage":"https://github.com/fpapado/svg-use#readme","bugs":{"url":"https://github.com/fpapado/svg-use/issues"},"dist":{"shasum":"e390700280e6918a0f87deece2c056eafc422291","tarball":"https://registry.npmjs.org/@svg-use/core/-/core-0.1.0.tgz","fileCount":18,"integrity":"sha512-l2GgGigzWxDcmLAgDFfonCDRvttqy+G0n8nKqIaxA1P8GmS3OLgJAtSL38U0HE6C0oQa5uZZ/DzOkgIlK9nn0Q==","signatures":[{"sig":"MEYCIQCMjbu6qLT3JpwB7awJ4BKYSZKl58+Dkf+3dEMXYWelCQIhANKtGHQn+Lf/1pXZ2ZaaNiW2574xDEyuGhj59T07jhnQ","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@svg-use%2fcore@0.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":58405},"type":"module","_from":"file:svg-use-core-0.1.0.tgz","exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"module":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"default":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"./package.json":"./package.json"},"scripts":{"dev":"npm-run-all --parallel build:lib:watch test","lint":"npm-run-all \"lint:*\"","test":"vitest","build":"pnpm build:lib","build:lib":"tsc -p tsconfig.build.json","prepublish":"publint && attw --config-path ./.attw.json --pack","check-types":"tsc --noEmit","lint:scripts":"eslint src --report-unused-disable-directives --no-warn-ignored --max-warnings 0","lint:prettier":"pnpm prettier --check .","build:lib:watch":"tsc --watch -p tsconfig.build.json","check-types:watch":"tsc --noEmit --watch"},"_npmUser":{"name":"fpapado","email":"fotis@fpapado.com"},"_resolved":"/tmp/5ebdc8b3df0910ef1534861606c30c53/svg-use-core-0.1.0.tgz","_integrity":"sha512-l2GgGigzWxDcmLAgDFfonCDRvttqy+G0n8nKqIaxA1P8GmS3OLgJAtSL38U0HE6C0oQa5uZZ/DzOkgIlK9nn0Q==","repository":{"url":"git+https://github.com/fpapado/svg-use.git","type":"git","directory":"packages/core"},"_npmVersion":"10.8.1","description":"Tools and bundler plugins for loading SVG images via use[href], for use in components.","directories":{},"_nodeVersion":"20.16.0","dependencies":{"svgo":"^3.3.2","unist-util-visit":"^5.0.0","xast-util-from-xml":"^4.0.0"},"_hasShrinkwrap":false,"devDependencies":{"@types/node":"20.14.14"},"peerDependencies":{"react":"^18"},"peerDependenciesMeta":{"react":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/core_0.1.0_1723633788320_0.08580815293877331","host":"s3://npm-registry-packages"}},"0.1.1":{"name":"@svg-use/core","version":"0.1.1","keywords":["loader","performance","plugin","svg"],"author":{"url":"https://fotis.xyz","name":"Fotis Papadogeorgopoulos","email":"fotis@fpapado.com"},"license":"MIT","_id":"@svg-use/core@0.1.1","maintainers":[{"name":"fpapado","email":"fotis@fpapado.com"}],"homepage":"https://github.com/fpapado/svg-use#readme","bugs":{"url":"https://github.com/fpapado/svg-use/issues"},"dist":{"shasum":"5c9be6f6ee62be234c6306343ec940c5d32f0026","tarball":"https://registry.npmjs.org/@svg-use/core/-/core-0.1.1.tgz","fileCount":25,"integrity":"sha512-NaHwjqDOLL1bwaO7AlO2pTwmvC616cE2UCRpoFHf5QXXRcbZ2RXUWC/kKAaRY8Slh1xzbPkL/ujs/3VdC4GX+A==","signatures":[{"sig":"MEUCIQCdHZOEQGXt9DvCLyxM5APlDFnx3d/LDrcJ60ZPlr7UMAIgT5tFNeOx7LhWHcl33bCKJ9MQ24iFs4dT1eOdr/xciVM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@svg-use%2fcore@0.1.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":61639},"type":"module","_from":"file:svg-use-core-0.1.1.tgz","exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"module":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"default":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"./package.json":"./package.json"},"scripts":{"dev":"npm-run-all --parallel build:lib:watch test","lint":"npm-run-all \"lint:*\"","test":"vitest","build":"pnpm build:lib","build:lib":"tsc -p tsconfig.build.json","prepublish":"publint && attw --config-path ./.attw.json --pack","check-types":"tsc --noEmit","lint:scripts":"eslint src --report-unused-disable-directives --no-warn-ignored --max-warnings 0","lint:prettier":"pnpm prettier --check .","build:lib:watch":"tsc --watch -p tsconfig.build.json","check-types:watch":"tsc --noEmit --watch"},"_npmUser":{"name":"fpapado","email":"fotis@fpapado.com"},"_resolved":"/tmp/cfbf96489090050c4731c91b9ec5e648/svg-use-core-0.1.1.tgz","_integrity":"sha512-NaHwjqDOLL1bwaO7AlO2pTwmvC616cE2UCRpoFHf5QXXRcbZ2RXUWC/kKAaRY8Slh1xzbPkL/ujs/3VdC4GX+A==","repository":{"url":"git+https://github.com/fpapado/svg-use.git","type":"git","directory":"packages/core"},"_npmVersion":"10.8.1","description":"Tools and bundler plugins for loading SVG images via use[href], for use in components.","directories":{},"_nodeVersion":"20.16.0","dependencies":{"svgo":"^3.3.2","unist-util-visit":"^5.0.0","xast-util-from-xml":"^4.0.0"},"_hasShrinkwrap":false,"devDependencies":{"@types/node":"20.14.14"},"peerDependencies":{"react":"^18"},"peerDependenciesMeta":{"react":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/core_0.1.1_1723721974840_0.03677803455451256","host":"s3://npm-registry-packages"}},"0.2.0":{"name":"@svg-use/core","version":"0.2.0","keywords":["loader","performance","plugin","svg"],"author":{"url":"https://fotis.xyz","name":"Fotis Papadogeorgopoulos","email":"fotis@fpapado.com"},"license":"MIT","_id":"@svg-use/core@0.2.0","maintainers":[{"name":"fpapado","email":"fotis@fpapado.com"}],"homepage":"https://github.com/fpapado/svg-use#readme","bugs":{"url":"https://github.com/fpapado/svg-use/issues"},"dist":{"shasum":"27af150faecd135d96e96ddce21b2988e19ef092","tarball":"https://registry.npmjs.org/@svg-use/core/-/core-0.2.0.tgz","fileCount":31,"integrity":"sha512-CNiHYRDl8hWkMlj+YEs6WYnApbC1P7gbUJesnbXa4wbWZcMJdgGRY/nPovhhYUQ+vAHwRwPQAR3Qr8UK3kO/Ng==","signatures":[{"sig":"MEQCIAEXK4cAQhMZ2P48/YKq9hG8N0M/d5dN6bBNPT0DRRZ0AiBywbCpagJz4QL0oQobhzj52CYY/ft+aGIeF31y8KKTcQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@svg-use%2fcore@0.2.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":63996},"type":"module","_from":"file:svg-use-core-0.2.0.tgz","exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"module":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"default":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"./package.json":"./package.json"},"scripts":{"dev":"npm-run-all --parallel build:lib:watch test","lint":"npm-run-all \"lint:*\"","test":"vitest","build":"pnpm build:lib","build:lib":"tsc -p tsconfig.build.json","prepublish":"publint && attw --config-path ./.attw.json --pack","check-types":"tsc --noEmit","lint:scripts":"eslint src --report-unused-disable-directives --no-warn-ignored --max-warnings 0","lint:prettier":"pnpm prettier --check .","build:lib:watch":"tsc --watch -p tsconfig.build.json","check-types:watch":"tsc --noEmit --watch"},"_npmUser":{"name":"fpapado","email":"fotis@fpapado.com"},"_resolved":"/tmp/c7115e2f42d46428e0c21b85d710ce8a/svg-use-core-0.2.0.tgz","_integrity":"sha512-CNiHYRDl8hWkMlj+YEs6WYnApbC1P7gbUJesnbXa4wbWZcMJdgGRY/nPovhhYUQ+vAHwRwPQAR3Qr8UK3kO/Ng==","repository":{"url":"git+https://github.com/fpapado/svg-use.git","type":"git","directory":"packages/core"},"_npmVersion":"10.8.1","description":"Tools and bundler plugins for loading SVG images via use[href], for use in components.","directories":{},"_nodeVersion":"20.16.0","dependencies":{"svgo":"^3.3.2","unist-util-visit":"^5.0.0","xast-util-from-xml":"^4.0.0"},"_hasShrinkwrap":false,"devDependencies":{"@types/node":"20.14.14","@types/xast":"2.0.4"},"peerDependencies":{"react":"^18"},"peerDependenciesMeta":{"react":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/core_0.2.0_1723792906087_0.6407983325683215","host":"s3://npm-registry-packages"}},"0.3.0":{"name":"@svg-use/core","version":"0.3.0","keywords":["loader","performance","plugin","svg"],"author":{"url":"https://fotis.xyz","name":"Fotis Papadogeorgopoulos","email":"fotis@fpapado.com"},"license":"MIT","_id":"@svg-use/core@0.3.0","maintainers":[{"name":"fpapado","email":"fotis@fpapado.com"}],"homepage":"https://github.com/fpapado/svg-use#readme","bugs":{"url":"https://github.com/fpapado/svg-use/issues"},"dist":{"shasum":"729b1c03ddb5b3b62b8354e15d0c1cae59e56fb1","tarball":"https://registry.npmjs.org/@svg-use/core/-/core-0.3.0.tgz","fileCount":28,"integrity":"sha512-hAlWvtUeellUogxAu7piKCCOMxQpJfnBptVRVp+aUbZb8ITb1XrhlBJnE+p2stSCH32BgmLJjxhaAMRkldh4XQ==","signatures":[{"sig":"MEUCIDE+tw76MMOjVScH4SJ6l1ynZQDBeotNGJ7+avHVgWAEAiEA7MHIV0oV4ysoJ43Hrai0kIyObBpjv3FO98ZaBWRtUQA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@svg-use%2fcore@0.3.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":67807},"type":"module","_from":"file:svg-use-core-0.3.0.tgz","exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"module":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"default":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"./package.json":"./package.json"},"scripts":{"dev":"npm-run-all --parallel build:lib:watch test","lint":"npm-run-all \"lint:*\"","test":"vitest","build":"pnpm build:lib","api-docs":"typedoc && prettier api-docs --write","build:lib":"tsc -p tsconfig.build.json","check-types":"tsc --noEmit","lint:scripts":"eslint src --report-unused-disable-directives --no-warn-ignored --max-warnings 0","lint:prettier":"pnpm prettier --check .","build:lib:watch":"tsc --watch -p tsconfig.build.json","check-types:watch":"tsc --noEmit --watch"},"_npmUser":{"name":"fpapado","email":"fotis@fpapado.com"},"_resolved":"/tmp/ba95d95fac1289c2e1f93a4b8da9e8c7/svg-use-core-0.3.0.tgz","_integrity":"sha512-hAlWvtUeellUogxAu7piKCCOMxQpJfnBptVRVp+aUbZb8ITb1XrhlBJnE+p2stSCH32BgmLJjxhaAMRkldh4XQ==","repository":{"url":"git+https://github.com/fpapado/svg-use.git","type":"git","directory":"packages/core"},"_npmVersion":"10.8.1","description":"Tools and bundler plugins for loading SVG images via use[href], for use in components.","directories":{},"_nodeVersion":"20.16.0","dependencies":{"svgo":"^3.3.2","unist-util-visit":"^5.0.0","xast-util-from-xml":"^4.0.0"},"_hasShrinkwrap":false,"devDependencies":{"@types/node":"20.14.14","@types/xast":"2.0.4"},"_npmOperationalInternal":{"tmp":"tmp/core_0.3.0_1724050880861_0.17486683989927476","host":"s3://npm-registry-packages"}},"0.4.0":{"name":"@svg-use/core","version":"0.4.0","keywords":["loader","performance","plugin","svg"],"author":{"url":"https://fotis.xyz","name":"Fotis Papadogeorgopoulos","email":"fotis@fpapado.com"},"license":"MIT","_id":"@svg-use/core@0.4.0","maintainers":[{"name":"fpapado","email":"fotis@fpapado.com"}],"homepage":"https://github.com/fpapado/svg-use#readme","bugs":{"url":"https://github.com/fpapado/svg-use/issues"},"dist":{"shasum":"a42fc7cd746205d4dd4e8554063ad30cabb7b9cb","tarball":"https://registry.npmjs.org/@svg-use/core/-/core-0.4.0.tgz","fileCount":27,"integrity":"sha512-k9CLfWnHitIUOtlmeWhsPToQZtVI7NM5+QuTG5UsV3i+2CqOLDPlc7Pv9uOQ9y4/Z/jZWdImsa5pyeSx67Z77Q==","signatures":[{"sig":"MEQCIBU2QzQAQv33bIG39BoCtfJYAdHsuljDsuRMR8Bs7oPbAiB7U/iEV1So8vn79+Ha6PzEAHESYV9fTo1X+c7MKk5++g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@svg-use%2fcore@0.4.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":26223},"type":"module","_from":"file:svg-use-core-0.4.0.tgz","exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"module":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"default":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"./package.json":"./package.json"},"scripts":{"dev":"npm-run-all --parallel build:lib:watch test","lint":"npm-run-all \"lint:*\"","test":"vitest","build":"pnpm build:lib","api-docs":"typedoc && prettier api-docs --write","build:lib":"tsc -p tsconfig.build.json","check-types":"tsc --noEmit","lint:scripts":"eslint src --report-unused-disable-directives --no-warn-ignored --max-warnings 0","lint:prettier":"pnpm prettier --check .","build:lib:watch":"tsc --watch -p tsconfig.build.json","check-types:watch":"tsc --noEmit --watch"},"_npmUser":{"name":"fpapado","email":"fotis@fpapado.com"},"_resolved":"/tmp/fa5ee61be6108debff7f6f06a18db1e0/svg-use-core-0.4.0.tgz","_integrity":"sha512-k9CLfWnHitIUOtlmeWhsPToQZtVI7NM5+QuTG5UsV3i+2CqOLDPlc7Pv9uOQ9y4/Z/jZWdImsa5pyeSx67Z77Q==","repository":{"url":"git+https://github.com/fpapado/svg-use.git","type":"git","directory":"packages/core"},"_npmVersion":"10.8.1","description":"Tools and bundler plugins for loading SVG images via use[href], for use in components.","directories":{},"_nodeVersion":"20.16.0","dependencies":{"svgo":"^3.3.2","unist-util-visit":"^5.0.0","xast-util-from-xml":"^4.0.0"},"_hasShrinkwrap":false,"devDependencies":{"@types/node":"20.16.1","@types/xast":"2.0.4"},"_npmOperationalInternal":{"tmp":"tmp/core_0.4.0_1724782718223_0.6413642815891685","host":"s3://npm-registry-packages"}},"0.5.0":{"name":"@svg-use/core","version":"0.5.0","keywords":["loader","performance","plugin","svg"],"author":{"url":"https://fotis.xyz","name":"Fotis Papadogeorgopoulos","email":"fotis@fpapado.com"},"license":"MIT","_id":"@svg-use/core@0.5.0","maintainers":[{"name":"fpapado","email":"fotis@fpapado.com"}],"homepage":"https://github.com/fpapado/svg-use#readme","bugs":{"url":"https://github.com/fpapado/svg-use/issues"},"dist":{"shasum":"6d3d967846f70562d4e4b305ceac9fbd8e9c535d","tarball":"https://registry.npmjs.org/@svg-use/core/-/core-0.5.0.tgz","fileCount":27,"integrity":"sha512-xLl62mWE+qtCYWuybZ1eCZrOePbMAM1sQN5Wp81cKsMKWYs6fd8EchDkOu0W4gUFKZoCj7AL4RGUW8AtyfOr4g==","signatures":[{"sig":"MEUCIQDq7NFwQJIkO9fevPBWbopL+yMe4f6I4beYOv3oDhinCwIgMl5V0NicAslZ56eDYndm8Iz+195ztgFP0w70iJagLbg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@svg-use%2fcore@0.5.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":28379},"type":"module","_from":"file:svg-use-core-0.5.0.tgz","exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"module":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"default":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"./package.json":"./package.json"},"scripts":{"dev":"npm-run-all --parallel build:lib:watch test","lint":"npm-run-all \"lint:*\"","test":"vitest","build":"pnpm build:lib","api-docs":"typedoc && prettier api-docs --write","build:lib":"tsc -p tsconfig.build.json --noCheck","check-types":"tsc --noEmit","lint:scripts":"eslint src --report-unused-disable-directives --no-warn-ignored --max-warnings 0","lint:prettier":"pnpm prettier --check .","build:lib:watch":"tsc --watch -p tsconfig.build.json","check-types:watch":"tsc --noEmit --watch"},"_npmUser":{"name":"fpapado","email":"fotis@fpapado.com"},"_resolved":"/tmp/fa8c3d082cb6c026fdc28311d19ee188/svg-use-core-0.5.0.tgz","_integrity":"sha512-xLl62mWE+qtCYWuybZ1eCZrOePbMAM1sQN5Wp81cKsMKWYs6fd8EchDkOu0W4gUFKZoCj7AL4RGUW8AtyfOr4g==","repository":{"url":"git+https://github.com/fpapado/svg-use.git","type":"git","directory":"packages/core"},"_npmVersion":"10.9.2","description":"Tools and bundler plugins for loading SVG images via use[href], for use in components.","directories":{},"_nodeVersion":"22.14.0","dependencies":{"svgo":"^3.3.2","unist-util-visit":"^5.0.0","xast-util-from-xml":"^4.0.0"},"_hasShrinkwrap":false,"devDependencies":{"@types/node":"22.12.0","@types/xast":"2.0.4"},"_npmOperationalInternal":{"tmp":"tmp/core_0.5.0_1743245441784_0.4998034101653981","host":"s3://npm-registry-packages-npm-production"}},"1.0.0":{"name":"@svg-use/core","version":"1.0.0","description":"Tools and bundler plugins for loading SVG images via use[href], for use in components.","license":"MIT","author":{"name":"Fotis Papadogeorgopoulos","email":"fotis@fpapado.com","url":"https://fotis.xyz"},"repository":{"type":"git","url":"git+https://github.com/fpapado/svg-use.git","directory":"packages/core"},"bugs":{"url":"https://github.com/fpapado/svg-use/issues"},"type":"module","exports":{".":{"module":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"default":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"./package.json":"./package.json"},"dependencies":{"svgo":"^3.3.2","unist-util-visit":"^5.0.0","xast-util-from-xml":"^4.0.0"},"devDependencies":{"@types/node":"22.13.14","@types/xast":"2.0.4"},"keywords":["loader","performance","plugin","svg"],"scripts":{"api-docs":"typedoc && prettier api-docs --write","build":"pnpm build:lib","build:lib":"tsc -p tsconfig.build.json --noCheck","build:lib:watch":"tsc --watch -p tsconfig.build.json","check-types":"tsc --noEmit","check-types:watch":"tsc --noEmit --watch","dev":"npm-run-all --parallel build:lib:watch test","lint":"npm-run-all \"lint:*\"","lint:prettier":"pnpm prettier --check .","lint:scripts":"eslint src --report-unused-disable-directives --no-warn-ignored --max-warnings 0","test":"vitest"},"_id":"@svg-use/core@1.0.0","homepage":"https://github.com/fpapado/svg-use#readme","_integrity":"sha512-O46PHvvUraByhR7ucDYl4qMSg507tJCEc2gc29Cp/LjnbF+ykC4QY2eNPf9xnAywiGKkSnqAb3bJlFtpVhg3EQ==","_resolved":"/tmp/a9255d4c421df51ccb21754455caf1b7/svg-use-core-1.0.0.tgz","_from":"file:svg-use-core-1.0.0.tgz","_nodeVersion":"22.14.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-O46PHvvUraByhR7ucDYl4qMSg507tJCEc2gc29Cp/LjnbF+ykC4QY2eNPf9xnAywiGKkSnqAb3bJlFtpVhg3EQ==","shasum":"91531997f4b6128ab4e1330723563ca160958f2d","tarball":"https://registry.npmjs.org/@svg-use/core/-/core-1.0.0.tgz","fileCount":27,"unpackedSize":29062,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@svg-use%2fcore@1.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCLpbQkQRtVPWffJT/3A8ucSg4tjjxTdpMZLXzcjNwh6QIgVy4yx4nqOlGs7W6MQGaBCAUAwrFG2RNIYC9kmE8NmOk="}]},"_npmUser":{"name":"fpapado","email":"fotis@fpapado.com"},"directories":{},"maintainers":[{"name":"fpapado","email":"fotis@fpapado.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/core_1.0.0_1743266197270_0.9672227675613163"},"_hasShrinkwrap":false}},"time":{"created":"2024-08-14T11:09:48.227Z","modified":"2025-03-29T16:36:37.844Z","0.1.0":"2024-08-14T11:09:48.467Z","0.1.1":"2024-08-15T11:39:35.010Z","0.2.0":"2024-08-16T07:21:46.269Z","0.3.0":"2024-08-19T07:01:21.030Z","0.4.0":"2024-08-27T18:18:38.365Z","0.5.0":"2025-03-29T10:50:41.989Z","1.0.0":"2025-03-29T16:36:37.464Z"},"bugs":{"url":"https://github.com/fpapado/svg-use/issues"},"author":{"name":"Fotis Papadogeorgopoulos","email":"fotis@fpapado.com","url":"https://fotis.xyz"},"license":"MIT","homepage":"https://github.com/fpapado/svg-use#readme","keywords":["loader","performance","plugin","svg"],"repository":{"type":"git","url":"git+https://github.com/fpapado/svg-use.git","directory":"packages/core"},"description":"Tools and bundler plugins for loading SVG images via use[href], for use in components.","maintainers":[{"name":"fpapado","email":"fotis@fpapado.com"}],"readme":"# `@svg-use/core`\n\nCore utilities for transforming an SVG to make it compatible with `use[href]`\n(for example ensuring an id, extracting id and viewBox, making it themeable).\n\nAlso includes utilities for creating JS modules, to facilitate bundler plugins\nor more bespoke code generation.\n\nIf you want to integrate svg-use into an existing pipeline, look into\n[the webpack loader](../webpack/) or [the rollup plugin](../rollup/).\n\nIf you want to transform SVG for a reusable component library (instead of an\napplication), or as a codegen step (instead of bundler plugins), then\n[consult the reusable library example](../../examples/shared-library/)\n\n## Quick start\n\n```shell\npnpm add --save-dev @svg-use/core\n```\n\nHere are the basic transformations, assuming some SVG content in scope:\n\n```tsx\nimport {\n  transformSvgForUseHref,\n  createJsModule,\n  defaultGetSvgIdAttribute,\n  defaultComponentFactory,\n  getDefaultThemeSubstitutionFunction,\n} from '@svg-use/core';\n\nfunction transformAndWriteModule(content: string) {\n  const transformResult = transformSvgForUseHref(content, {\n    getSvgIdAttribute: defaultGetSvgIdAttribute,\n    getThemeSubstitutions: getDefaultThemeSubstitutionFunction(),\n  });\n\n  if (transformResult.type === 'failure') {\n    throw new Error(transformResult.error);\n  }\n\n  const {\n    data: { content: transformedSvg, id, viewBox },\n  } = transformResult;\n\n  const jsModuleCode = createJsModule(\n    {\n      url: /* fill in an applicable URL here; depends on the context */,\n      id: JSON.stringify(id),\n      viewBox: JSON.stringify(viewBox),\n    },\n    {\n      componentFactory: defaultComponentFactory,\n    },\n  );\n}\n```\n\n## API reference\n\n[Find the full API reference](./api-docs/README.md)\n","readmeFilename":"README.md"}