https://github.com/aykutkardas/svgps-cli
This project is the CLI version of the svgps package.
https://github.com/aykutkardas/svgps-cli
cli icomoon icons parser svg svg-icons
Last synced: about 1 year ago
JSON representation
This project is the CLI version of the svgps package.
- Host: GitHub
- URL: https://github.com/aykutkardas/svgps-cli
- Owner: aykutkardas
- License: mit
- Created: 2022-07-22T12:33:00.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-07-29T19:51:45.000Z (almost 4 years ago)
- Last Synced: 2025-03-09T06:35:17.852Z (over 1 year ago)
- Topics: cli, icomoon, icons, parser, svg, svg-icons
- Language: TypeScript
- Homepage: https://svgps.app
- Size: 32.2 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# svgps-cli
[](https://www.npmjs.com/package/svgps-cli)
[](https://opensource.org/licenses/MIT)
**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](https://github.com/aykutkardas/svgps) package.
You can also use it online: [svgps.app](https://github.com/aykutkardas/svgps.app)
## Install
```
npm install -g svgps-cli
```
## Syntax
```
svgps [...options]
```
## Usage
### Combine All Icons
It parses all icons and combines them into a single JSON file.
```sh
svgps your/path/icons your/output/path/icons.json
```
### Parse Single File
Use `--file` option
```sh
svgps your/path/arrow-down.svg your/output/path/arrow-down.json --file
```
### IcoMoon Template
Use `--template` option with `icomoon`
```sh
svgps your/path/icons your/output/path/icons.json --template icomoon
```