An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

        


SVG Spreact


CLI version of svg-spreact

## Install

```zsh
npm i -g svg-spreact-cli
```

## Usage

```zsh
svg-spreact [options]
```


svg-spreact demo

## 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)