Gathering detailed insights and metrics for @svgr/core
Gathering detailed insights and metrics for @svgr/core
Gathering detailed insights and metrics for @svgr/core
Gathering detailed insights and metrics for @svgr/core
npm install @svgr/core
Typescript
Module System
Min. Node Version
Node Version
NPM Version
TypeScript (64.93%)
MDX (20.67%)
JavaScript (14.4%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
10,861 Stars
650 Commits
430 Forks
35 Watchers
3 Branches
129 Contributors
Updated on Jul 14, 2025
Latest Version
8.1.0
Package Id
@svgr/core@8.1.0
Unpacked Size
24.22 kB
Size
6.74 kB
File Count
6
NPM Version
lerna/6.6.0/node@v18.17.0+arm64 (darwin)
Node Version
18.17.0
Published on
Aug 15, 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
1
Node API of SVGR.
npm install @svgr/core
1import { transform } from '@svgr/core' 2 3const svgCode = ` 4<svg xmlns="http://www.w3.org/2000/svg" 5 xmlns:xlink="http://www.w3.org/1999/xlink"> 6 <rect x="10" y="10" height="100" width="100" 7 style="stroke:#ff0000; fill: #0000ff"/> 8</svg> 9` 10 11transform(svgCode, { icon: true }, { componentName: 'MyComponent' }).then( 12 (jsCode) => { 13 console.log(jsCode) 14 }, 15)
Use svgr.sync(code, config, state)
if you would like to use sync version.
By default @svgr/core
doesn't include any plugin, if you want them, you have to install them and include them in config.
1svgr(svgCode, { 2 plugins: ['@svgr/plugin-svgo', '@svgr/plugin-jsx', '@svgr/plugin-prettier'], 3}).then((jsCode) => { 4 console.log(jsCode) 5})
MIT
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
GitHub workflow tokens follow principle of least privilege
Details
Reason
license file detected
Details
Reason
no binaries found in the repo
Reason
Found 18/28 approved changesets -- score normalized to 6
Reason
0 commit(s) and 1 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
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
81 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