Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bacongravy/emoji-favicon-cli
A CLI tool to generate favicons from emoji names
https://github.com/bacongravy/emoji-favicon-cli
cli emoji favicon nodejs
Last synced: 20 days ago
JSON representation
A CLI tool to generate favicons from emoji names
- Host: GitHub
- URL: https://github.com/bacongravy/emoji-favicon-cli
- Owner: bacongravy
- License: isc
- Created: 2020-04-27T03:53:02.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-03-04T14:43:25.000Z (over 1 year ago)
- Last Synced: 2024-10-11T15:43:52.545Z (about 1 month ago)
- Topics: cli, emoji, favicon, nodejs
- Language: JavaScript
- Homepage:
- Size: 354 KB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# emoji-favicon-cli
A CLI tool to generate a `favicon.ico` file from an emoji name. Perfect for when you are spinning up a new project and need a favicon to get started.
## Usage
[Node.js](https://nodejs.org) version 8.2.0 or later is required. Use `npx` to invoke the command:
```bash
npx emoji-favicon-cli [] [-d ] [-v ]
```The command has the following basic behavior:
- Presents an interactive emoji browser in the terminal if the emoji name is not provided.
- Creates a file named `favicon.ico` at the destination.
- Uses `.` as the default destination.
- Uses `google` as the default vendor. For the full list of supported vendors, see below.## Examples
```bash
npx emoji-favicon-cli
npx emoji-favicon-cli tada
npx emoji-favicon-cli -d public ghost
npx emoji-favicon-cli -v apple sunglasses
```## How to use the favicon
Make sure the `favicon.ico` file is in the root of the site's static files directory. Then put the following in the `` element of the site's `index.html`:
```html
```
## Supported vendors
The following emoji vendors are supported:
- `apple`
- `facebook`
- `github`
- `google`
- `joy-pixels`
- `samsung`
- `twitter`
- `webfx`
- `windows`## Image sources
This tool does not include any emoji images in its package. Emoji images are retrieved at runtime from the following sources:
- the `emojiii` [project](https://github.com/bruceCzK/Emojiii/) ([cheatsheet](http://unicode.org/emoji/charts/full-emoji-list.html))
- the GitHub `emojis` [API](https://developer.github.com/v3/emojis/) ([cheatsheet](https://github.com/ikatyang/emoji-cheat-sheet))
- the WebFX `emoji-cheat-sheet.com` [project](https://github.com/WebpageFX/emoji-cheat-sheet.com) ([cheatsheet](https://www.webfx.com/tools/emoji-cheat-sheet/))GitHub project assets are retrieved via the [JSDelivr](https://www.jsdelivr.com) content delivery network.
## Known limitations
Emoji searching is powered by [`emojilib`](https://github.com/muan/emojilib). Not every vendor provides every emoji found in `emojilib`, and some vendors provide additional emojis not found in `emojilib`.