@vactorynext/svg-spreact-cli
v1.2.4
Published
<p align="center"> <img alt="SVG Spreact" title="SVG Spreact" src="https://cdn.rawgit.com/elrumordelaluz/svg-spreact/2b58118b/logo.svg" width="450"> </p>
Downloads
20
Readme
Install
npm i -g svg-spreact-cli
Usage
svg-spreact <folder> [options]
Example
svg-spreact ./icons --optimize true --tidy false
- Will log the output (defs
<symbols>
and refs<use>
). - Automatically copy the output into Clipboard
svg-spreact ./icons > sprite.svg
API
folder
Default: ./
options
--tidy
-t
(boolean
) default:true
--optimize
-o
(boolean
) default:true
--prefix
-p
(string
) default: ''--suffix
-s
(string
) default: ''--classname
-c
(string
) default: ''
Related
svg-spreact Main Package