svg-spreact-cli

1.2.0 • Public • Published

SVG Spreact

CLI version of svg-spreact

Install

npm i -g svg-spreact-cli

Usage

svg-spreact <folder> [options]

svg-spreact demo

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

web-app

[POST] endpoint | docs

Readme

Keywords

none

Package Sidebar

Install

npm i svg-spreact-cli

Weekly Downloads

81

Version

1.2.0

License

MIT

Unpacked Size

4.45 kB

Total Files

3

Last publish

Collaborators

  • elrumordelaluz