https://github.com/elrumordelaluz/svg-spreact-cli
CLI version of svg-spreact
https://github.com/elrumordelaluz/svg-spreact-cli
cli icon react svg svg-files svg-icon svg-icons svg-spreact svg-sprites svgo svgson
Last synced: 26 days ago
JSON representation
CLI version of svg-spreact
- Host: GitHub
- URL: https://github.com/elrumordelaluz/svg-spreact-cli
- Owner: elrumordelaluz
- Created: 2018-04-24T08:02:21.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-06-04T20:30:11.000Z (almost 7 years ago)
- Last Synced: 2025-03-14T22:22:31.028Z (3 months ago)
- Topics: cli, icon, react, svg, svg-files, svg-icon, svg-icons, svg-spreact, svg-sprites, svgo, svgson
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/svg-spreact-cli
- Size: 2.4 MB
- Stars: 20
- Watchers: 2
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
![]()
CLI version of svg-spreact## Install
```zsh
npm i -g svg-spreact-cli
```## Usage
```zsh
svg-spreact [options]
```
![]()
## Example
```zsh
svg-spreact ./icons --optimize true --tidy false
```* Will log the output (defs `` and refs ``).
* Automatically **copy the output into Clipboard**```zsh
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](https://github.com/elrumordelaluz/svg-spreact) Main Package
[web-app](https://elrumordelaluz.github.io/micro-svg-spreact/)
`[POST]` [endpoint](https://micro-svg-spreact.now.sh/) | [docs](https://github.com/elrumordelaluz/micro-svg-spreact)