Gathering detailed insights and metrics for next-svgr-react-component
Gathering detailed insights and metrics for next-svgr-react-component
Gathering detailed insights and metrics for next-svgr-react-component
Gathering detailed insights and metrics for next-svgr-react-component
Achieving Same SVG behaviour from CRA to Nextjs
npm install next-svgr-react-component
Typescript
Module System
40.7
Supply Chain
53.5
Quality
71.1
Maintenance
50
Vulnerability
98.2
License
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
1 Stars
7 Commits
1 Watchers
9 Branches
1 Contributors
Updated on Dec 10, 2020
Latest Version
1.1.1
Package Id
next-svgr-react-component@1.1.1
Unpacked Size
3.63 kB
Size
1.91 kB
File Count
5
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
2
This plugin aims to have the same CRA useful behaviour on next regarding SVG.
1npm install --save next-svgr-react-component
Or using yarn:
1yarn add next-svgr-react-component
Then, import the library in your next.config.js
file.
1// next.config.js 2const withSVG = require("next-svgr-react-component"); 3 4module.exports = withSVG({});
or, with next-compose-plugins
:
1const withSVG = require("next-svgr-react-component"); 2 3module.exports = withPlugins([withSVG])
This plugin allows the usage of SVG in various formats:
As Static Path:
1import starUrl from './star.svg' 2 3const App = () => ( 4 <div> 5 <img src={starUrl} alt="star" /> 6 <Star /> 7 </div> 8)
As React Component
1import { ReactComponent as Star } from './star.svg' 2 3const App = () => ( 4 <div> 5 <Star /> 6 </div> 7)
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 0/5 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
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
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
16 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