
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
re-svgify is a powerful tool that transforms your SVG files into optimized, fully customizable React components. No more manual conversions—just drop your SVGs in a folder and let re-svgify handle the rest!
✔️ Change Colors – Modify fill
and stroke
dynamically using props.
✔️ Adjust Size – Set custom width
and height
for your icons.
✔️ All SVG Props Supported – Easily pass any SVG attribute like opacity
, strokeWidth
, className
, etc.
<IconArrowDown fill="red" stroke="blue" width={48} height={48} />
.svg
files into React components (.tsx
).icon-arrow-down.svg
to IconArrowDown.tsx
.npm install -g re-svgify
Place your SVG files inside the _icons/
folder in your project root.
Run the CLI command:
npx re-svgify
Find your generated components inside components/icons/
.
_icons/arrow-down.svg
)<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<path d="M12 19l-7-7h14z"/>
</svg>
components/icons/IconArrowDown.tsx
)import BaseIcon from "../base-icon";
import { SvgIcon } from "../icon.types";
export default function IconArrowDown(props: SvgIcon) {
return (
<BaseIcon {...props}>
<path d="M12 19l-7-7h14z" />
</BaseIcon>
);
}
<IconArrowDown fill="green" stroke="black" strokeWidth={2} width={32} height={32} />
By default, re-svgify looks for _icons/
and outputs components to components/icons/
. You can modify this in gulpfile.cjs
.
To customize the output directory:
npx re-svgify --iconsFolder ./my-icons --componentsFolder ./src/components/icons
✅ Saves time – No more manual React conversions!
✅ Performance-focused – Minified, clean SVGs for better rendering.
✅ Fully customizable – Change colors, sizes, and styles dynamically.
✅ Zero setup – Just run and generate!
Found a bug? Have a feature request? Open an issue or contribute via PR!
MIT License. Free to use, modify, and share.
🚀 Transform & customize your icons effortlessly with re-svgify! 🎨💡
FAQs
A CLI tool to convert SVG icons into React components.
The npm package re-svgify receives a total of 0 weekly downloads. As such, re-svgify popularity was classified as not popular.
We found that re-svgify demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.