Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/afeiship/icons-generator

Icons generator.
https://github.com/afeiship/icons-generator

chrome-extension favico generator icons

Last synced: about 1 month ago
JSON representation

Icons generator.

Awesome Lists containing this project

README

        

# icons-generator
> Icons generator.

## options
### chrome-extension
| name | alias | default | default |
| -------- | ----- | ---------------- | ---------------------- |
| filename | -f | - | The target filename. |
| output | -o | ./dist | The target output dir. |
| prefix | -p | icon- | The icon prefix. |
| sizes | -s | 16,32,64,128,256 | The icon sizes. |

```conf
Options:
--version Show version number [boolean]
--help Show help [boolean]
--filename, -f The icon filename. [required]
--size, -s The sizes of icons.
--prefix, -p The icon prefix name.
--output, -o The icon output dir.

Missing required argument: filename
```

### favicon
| name | alias | default | default |
| -------- | ----- | ------- | ---------------------- |
| filename | -f | - | The target filename. |
| output | -o | ./dist | The target output dir. |
| sizes | -s | 16,32 | The icon sizes. |

```conf
Options:
--version Show version number [boolean]
--help Show help [boolean]
--filename, -f The input filename. [required]
--size, -s The sizes of icons.
--output, -o The icon output dir.

Missing required argument: filename
```

## usage
```shell
# debug
git clone [email protected]:afeiship/icons-generator.git
npm link

# production
npm install -g `your-package`

icons-generator chrome-extension -f=__tests__/icon.png
icons-generator favicon -f=__tests__/afei.jpg
```

## resources
- https://github.com/eridem/cli-tutorial
- https://github.com/lovell/sharp
- https://github.com/lovell/sharp/issues/1118
- https://github.com/kevva/to-ico#readme