0.1.0 • Published 5 months ago

svg-to-tsx v0.1.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
5 months ago

svg-to-tsx

Convert all your SVGs to a single TSX module

Usage

  1. Run npm i svg-to-tsx
  2. Add following script to your package.json
"icons": "svg-to-tsx -i ./input/path -o ./output/path -n fileName"
  1. Run npm run icons

CLI Options

ShortLongDescriptionDefault
-i--inputPath to where SVG files are locatednone
-o--outputOutput module destination pathnone
-n--nameOutput module file name"icons"

Warning

This package was made in a hurry because I needed it for my website. I will improve it somewhere in the future with additional settings.