Gathering detailed insights and metrics for typescript-react-svg-icon-generator
Gathering detailed insights and metrics for typescript-react-svg-icon-generator
Gathering detailed insights and metrics for typescript-react-svg-icon-generator
Gathering detailed insights and metrics for typescript-react-svg-icon-generator
React SVG Icon Generator Typescript
npm install typescript-react-svg-icon-generator
Typescript
Module System
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
12 Stars
22 Commits
4 Forks
1 Watchers
1 Branches
3 Contributors
Updated on Aug 19, 2023
Latest Version
1.1.9
Package Id
typescript-react-svg-icon-generator@1.1.9
Unpacked Size
11.29 kB
Size
4.72 kB
File Count
11
NPM Version
5.6.0
Node Version
8.11.2
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
6
Generate React Icon Component from SVG icons to show, resize and recolor them. The default template is a typescript template.
This codebase is built on node v6: https://nodejs.org/en/blog/release/v6.9.0/
You need to add this just to development, because it will generate self contained React component directly to your codebase.
1npm install --save-dev typescript-react-svg-icon-generator
1const generator = require('typescript-react-svg-icon-generator') 2 3const config = { 4 svgDir: './src/assets/svg/', 5 destination: './src/components/Icon/index.tsx' 6} 7generator(config)
path.join(__dirname, 'icons')
absolute path so it will work in any directory of project/* tslint:disable */
after comment1import React, {Component} from 'react' 2import Icon from './Icon' 3 4export default class App extends Component { 5 render() { 6 return ( 7 <div> 8 Simple possible usage 9 <Icon kind='clock' /> 10 11 Setup color and bounding width and height 12 <Icon kind='close' color='#748' width={500} height={100} /> 13 14 Setup color and bounding width and height to size (square) 15 <Icon kind='close' color='red' size={600} /> 16 17 Setup onClick behavior 18 <Icon kind='close' onClick={() => alert('clicked on icon')} /> 19 20 Show all icons at once with description (for finding right icon) 21 <Icon preview /> 22 </div> 23 ) 24 } 25}
This package was build upon react-svg-icon-generator-ts & react-svg-icon-generator
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
Found 2/19 approved changesets -- score normalized to 1
Reason
project is archived
Details
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
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