Giter VIP home page Giter VIP logo

svg-spreact-cli's Introduction

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

svg-spreact-cli's People

Contributors

elrumordelaluz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

svg-spreact-cli's Issues

Binary version for Windows and Linux.

Hi, I love this tool but I have problems to create a .exe version or a binary for Linux, I use this tool in a Go program but it is not feasible for me to install node.js on the target machine for several reasons.

Can you please create a multi platform binary?

Cannot be installed locally

Install with 'npm i -g' and run command 'svg-spreact', it works

Install with 'npm i -S' or 'npm i -D' and run command 'svg-spreact' in project root, it cant find the package

zsh: command not found: svg-spreact

Cannot read property 'join' of undefined

Command:

 svg-spreact ./icons

Output:

TypeError: Cannot read property 'join' of undefined
    at module.exports (/usr/local/lib/node_modules/svg-spreact-cli/node_modules/svg-spreact/index.js:118:17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.