Gathering detailed insights and metrics for svgson-loader
Gathering detailed insights and metrics for svgson-loader
Gathering detailed insights and metrics for svgson-loader
Gathering detailed insights and metrics for svgson-loader
npm install svgson-loader
Typescript
Module System
Node Version
NPM Version
56.8
Supply Chain
67.3
Quality
71
Maintenance
50
Vulnerability
97.9
License
JavaScript (100%)
Total Downloads
37,247
Last Day
1
Last Week
3
Last Month
23
Last Year
225
5 Stars
12 Commits
1 Watchers
1 Branches
2 Contributors
Updated on Mar 02, 2018
Minified
Minified + Gzipped
Latest Version
2.0.0
Package Id
svgson-loader@2.0.0
Size
2.14 kB
NPM Version
5.5.1
Node Version
8.7.0
Cumulative downloads
Total Downloads
Converts svg+xml files to JSON. Based on svgson npm package. Can be used for rendering SVG via React components.
npm install svgson-loader --save-dev
We are writing React UI library with icon button which filling it's background color based on SVG 1.2 property "viewport-fill":
import vkIcon from 'svgson-loader!./icons/vk.svg';
import okIcon from 'svgson-loader!./icons/ok.svg';
import fbIcon from 'svgson-loader!./icons/fb.svg';
stories.add('Social buttons', () => (
<div>
<Button icon={vkIcon} />
<Button icon={okIcon} />
<Button icon={fbIcon} />
</div>
));
So Button
reads "viewport-fill" attribute inside JSON, applies backgroundColor property
then generates React.createElement calls to render SVG.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
Found 1/11 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
license file not detected
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
11 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-06-23
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 MoreLast Day
-80%
1
Compared to previous day
Last Week
-40%
3
Compared to previous week
Last Month
-45.2%
23
Compared to previous month
Last Year
66.7%
225
Compared to previous year