Skip to content

aykutkardas/svgps-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

svgps-cli

npm License

SVGPS converts your icons into a single JSON file that is ready to use in your frontend or mobile projects. This project is the CLI version of the svgps package.

You can also use it online: svgps.app

Install

npm install -g svgps-cli

Syntax

svgps <input-path> <output-path> [...options]

Usage

Combine All Icons

It parses all icons and combines them into a single JSON file.

svgps your/path/icons your/output/path/icons.json

Parse Single File

Use --file option

svgps your/path/arrow-down.svg your/output/path/arrow-down.json --file

IcoMoon Template

Use --template option with icomoon

svgps your/path/icons your/output/path/icons.json --template icomoon