Skip to content

Latest commit

 

History

History
46 lines (29 loc) · 1.04 KB

README.md

File metadata and controls

46 lines (29 loc) · 1.04 KB

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