Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dvhb/icons
Last synced: 19 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/dvhb/icons
- Owner: dvhb
- Created: 2019-05-07T10:22:28.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-01-14T14:17:19.000Z (almost 5 years ago)
- Last Synced: 2024-12-06T00:17:07.039Z (about 1 month ago)
- Language: TypeScript
- Size: 862 KB
- Stars: 3
- Watchers: 10
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
@dvhb/icons
===========dvhb icons toolset
[![oclif](https://img.shields.io/badge/cli-oclif-brightgreen.svg)](https://oclif.io)
[![Version](https://img.shields.io/npm/v/@dvhb/icons.svg)](https://npmjs.org/package/@dvhb/icons)
[![Downloads/week](https://img.shields.io/npm/dw/@dvhb/icons.svg)](https://npmjs.org/package/@dvhb/icons)
[![License](https://img.shields.io/npm/l/@dvhb/icons.svg)](https://github.com/dvhb/icons/blob/master/package.json)
[![Travis (.org)](https://img.shields.io/travis/dvhb/icons)](https://travis-ci.org/dvhb/icons)* [Usage](#usage)
* [Commands](#commands)# Usage
```sh-session
$ npm install -g @dvhb/icons
$ dvhb-icons COMMAND
running command...
$ dvhb-icons (-v|--version|version)
@dvhb/icons/1.2.2 linux-x64 node-v12.14.1
$ dvhb-icons --help [COMMAND]
USAGE
$ dvhb-icons COMMAND
...
```# Commands
* [`dvhb-icons figma2svg`](#dvhb-icons-figma2svg)
* [`dvhb-icons generate`](#dvhb-icons-generate)
* [`dvhb-icons help [COMMAND]`](#dvhb-icons-help-command)## `dvhb-icons figma2svg`
extract svg icons from figma
```
USAGE
$ dvhb-icons figma2svgOPTIONS
-e, --exclude=exclude comma separated frames for excluding
-f, --fileId=fileId (required) figma fileId
-h, --help show CLI help
-i, --icons=icons (required) [default: icons] icons folder
-p, --page=page (required) [default: Icons] figma page
-t, --token=token (required) figma tokenEXAMPLE
$ dvhb-icons figma2svg
```_See code: [src/commands/figma2svg.ts](https://github.com/dvhb/icons/blob/v1.2.2/src/commands/figma2svg.ts)_
## `dvhb-icons generate`
generate react components from svg icons
```
USAGE
$ dvhb-icons generateOPTIONS
-c, --components=components (required) [default: components] components folder
-h, --help show CLI help
-i, --icons=icons (required) [default: icons] icons folder
-n, --native generate icons for react-native
-t, --template=template [default: .svgrrc.js] template for icon filesEXAMPLE
$ dvhb-icons generate
```_See code: [src/commands/generate.ts](https://github.com/dvhb/icons/blob/v1.2.2/src/commands/generate.ts)_
## `dvhb-icons help [COMMAND]`
display help for dvhb-icons
```
USAGE
$ dvhb-icons help [COMMAND]ARGUMENTS
COMMAND command to show help forOPTIONS
--all see all commands in CLI
```_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v2.2.1/src/commands/help.ts)_