Gathering detailed insights and metrics for @elliottsj/next-svgr
Gathering detailed insights and metrics for @elliottsj/next-svgr
npm install @elliottsj/next-svgr
Typescript
Module System
Node Version
NPM Version
34.7
Supply Chain
56.8
Quality
70
Maintenance
50
Vulnerability
98.6
License
JavaScript (100%)
Total Downloads
7,211
Last Day
1
Last Week
2
Last Month
6
Last Year
54
26 Stars
7 Commits
9 Forks
2 Watching
1 Branches
1 Contributors
Minified
Minified + Gzipped
Latest Version
0.0.3
Package Id
@elliottsj/next-svgr@0.0.3
Unpacked Size
3.83 kB
Size
2.07 kB
File Count
6
NPM Version
6.11.3
Node Version
10.16.0
Cumulative downloads
Total Downloads
Last day
0%
1
Compared to previous day
Last week
100%
2
Compared to previous week
Last month
50%
6
Compared to previous month
Last year
-34.1%
54
Compared to previous year
1
Plugin for Next to automatically be able to transform svg
files into components using the excellent svgr
library.
1npm install --save next-svgr
Or using yarn:
1yarn add next-svgr
Then, import the library in your next.config.js
file.
1// next.config.js
2const withSvgr = require("next-svgr");
3
4module.exports = withSvgr({
5 // your config for other plugins or the general next.js here...
6});
Or you can use it with next-compose-plugins
for a cleaner configuration.
1// next.config.js 2const withPlugins = require("next-compose-plugins"); 3const withSvgr = require("next-svgr"); 4 5module.exports = withPlugins([ 6 withSvgr 7 // your other plugins here 8]);
You can now start importing your SVG files as if they were components:
1import MyIcon from "./myicon.svg"; 2 3export default () => ( 4 <div> 5 <MyIcon /> 6 </div> 7);
Please check the documentation of svgr for more examples.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
no SAST tool detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/7 approved changesets -- 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
Score
Last Scanned on 2025-02-03
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