Gathering detailed insights and metrics for nuxt-svg-sprite-loader
Gathering detailed insights and metrics for nuxt-svg-sprite-loader
Gathering detailed insights and metrics for nuxt-svg-sprite-loader
Gathering detailed insights and metrics for nuxt-svg-sprite-loader
nuxt-symbol-icons
A nuxt(2) module for using svg sprite icon.
nuxt3-svg-sprite-builder
Nitro plugin to inject SVG sprite from SVG files into your HTML
@aidol/svg-icon
A Vue SVG Symbol icon component for svg-sprite-loader, Easy to custom SVG icon 's color and size!!!
vue-symbol-icon
A Vue SVG Symbol icon component for svg-sprite-loader, Easy to custom SVG icon 's color and size!!!
npm install nuxt-svg-sprite-loader
Typescript
Module System
Min. Node Version
Node Version
NPM Version
JavaScript (97.73%)
Shell (2.27%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
NOASSERTION License
1 Stars
191 Commits
2 Watchers
11 Branches
5 Contributors
Updated on Apr 11, 2025
Latest Version
2.0.30
Package Id
nuxt-svg-sprite-loader@2.0.30
Unpacked Size
7.67 kB
Size
3.04 kB
File Count
4
NPM Version
7.24.2
Node Version
16.20.2
Published on
Nov 28, 2023
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
Nuxt.js module for svg-sprite-loader.
1# npm 2$ npm install nuxt-svg-sprite-loader 3 4# Yarn 5$ yarn add nuxt-svg-sprite-loader
Add the module to your Nuxt.js modules list in nuxt.config.js
:
1export default { 2 ... 3 modules: [ 4 'nuxt-svg-sprite-loader' 5 ] 6}
Use an SVG in your page:
1<template> 2 <svg><use :xlink:href="'#' + Logo.id"></use></svg> 3</template> 4 5<script> 6import Logo from '@/assets/logo.svg' 7 8export default { 9 computed: { 10 Logo: () => Logo, 11 }, 12} 13</script>
Or use it with JSX:
1<script> 2import Logo from '@/assets/logo.svg' 3 4export default { 5 render() { 6 return <svg><use xlinkHref={`#\${Logo.id}`}></use></svg> 7 } 8} 9</script>
You can pass options to the module, which are passed down to the svg-sprite-loader NPM package. Please refer to this for the available options.
Directly:
1export default { 2 ... 3 modules: [ 4 ['nuxt-svg-sprite-loader', { 5 symbolId: 'foo-[name]' 6 }] 7 ] 8}
Top-level:
1export default { 2 ... 3 modules: [ 4 'nuxt-svg-sprite-loader' 5 ], 6 spriteSvgLoader: { 7 symbolId: 'foo-[name]' 8 } 9}
Are you missing something or want to contribute? Feel free to file an issue or a pull request! ⚙️
Hey, I am Sebastian Landwehr, a freelance web developer, and I love developing web apps and open source packages. If you want to support me so that I can keep packages up to date and build more helpful tools, you can donate here:
If you want to send me a one time donation. The coffee is pretty good 😊.
Also for one time donations if you like PayPal.
Here you can support me regularly, which is great so I can steadily work on projects.
Thanks a lot for your support! ❤️
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
1 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
51 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More