Straightens out svg paths into jsx/tsx files.
It's a transpiler, since SVGs are just HTML, we convert that HTML strcuture to HAST. From there we squish/straighten out out any weird svgisms and spit out a JSX/TSX component.
psx <path> <name> [options]
<path>
: Relative path to an svg file. (Required)<name>
: Custom component name. (Optional)
-t
or--typescript
: Exports the component with typescript annotations.-n
or--react-native
: Exports the component with React Native support.