New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@coderebus/svg

Package Overview
Dependencies
Maintainers
0
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@coderebus/svg

a package to optimze and convert svg into react component

latest
npmnpm
Version
1.3.1
Version published
Maintainers
0
Created
Source

SVG

All the svg files will be optimized using SVGO, converted into react components using SVGR and will be saved inside components folder. The original svgs will remain unaltered inside the assets folder.

All the components can be used through named import. Tree shaking feature is enabled in the package.

Usage

  • Add all your svgs inside assets folder.
  • Run the command transform to get the corresponding react components.
  • Alternatively, you can simply run the command build to transform and build the components.

FAQs

Package last updated on 20 Aug 2024

Did you know?

Socket

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.

Install

Related posts