Installations
npm install @elliottsj/next-svgr
Developer Guide
Typescript
No
Module System
CommonJS
Node Version
10.16.0
NPM Version
6.11.3
Score
34.7
Supply Chain
56.8
Quality
70
Maintenance
50
Vulnerability
98.6
License
Contributors
Unable to fetch Contributors
Languages
JavaScript (100%)
Developer
Anomen
Download Statistics
Total Downloads
7,211
Last Day
1
Last Week
2
Last Month
6
Last Year
54
GitHub Statistics
26 Stars
7 Commits
9 Forks
2 Watching
1 Branches
1 Contributors
Bundle Size
3.47 MB
Minified
800.88 kB
Minified + Gzipped
Package Meta Information
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
Total Downloads
Cumulative downloads
Total Downloads
7,211
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
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dependencies
1
:rocket: next-svgr
Plugin for Next to automatically be able to transform svg
files into components using the excellent svgr
library.
Table of contents
Installation
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]);
Usage
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.
![Empty State](/_next/static/media/empty.e5fae2e5.png)
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: MIT License: LICENSE:0
Reason
no SAST tool detected
Details
- Warn: no pull requests merged into dev branch
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
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Score
3
/10
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