
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
typescript-react-svg-icon-generator
Advanced tools
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.
npm install --save-dev typescript-react-svg-icon-generator
const generator = require('typescript-react-svg-icon-generator')
const config = {
svgDir: './src/assets/svg/',
destination: './src/components/Icon/index.tsx'
}
generator(config)
path.join(__dirname, 'icons')
absolute path so it will work in any directory of project/* tslint:disable */
after commentimport React, {Component} from 'react'
import Icon from './Icon'
export default class App extends Component {
render() {
return (
<div>
Simple possible usage
<Icon kind='clock' />
Setup color and bounding width and height
<Icon kind='close' color='#748' width={500} height={100} />
Setup color and bounding width and height to size (square)
<Icon kind='close' color='red' size={600} />
Setup onClick behavior
<Icon kind='close' onClick={() => alert('clicked on icon')} />
Show all icons at once with description (for finding right icon)
<Icon preview />
</div>
)
}
}
This package was build upon react-svg-icon-generator-ts & react-svg-icon-generator
FAQs
typescript-react-svg-icon-generator
The npm package typescript-react-svg-icon-generator receives a total of 10 weekly downloads. As such, typescript-react-svg-icon-generator popularity was classified as not popular.
We found that typescript-react-svg-icon-generator demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.