https://github.com/sbekrin/emoji-favicon
Temporary repository of updated version of npm emoji-favicon package
https://github.com/sbekrin/emoji-favicon
Last synced: 20 days ago
JSON representation
Temporary repository of updated version of npm emoji-favicon package
- Host: GitHub
- URL: https://github.com/sbekrin/emoji-favicon
- Owner: sbekrin
- Created: 2016-08-02T18:28:01.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-06-24T21:05:32.000Z (almost 7 years ago)
- Last Synced: 2025-02-15T19:48:57.532Z (2 months ago)
- Language: JavaScript
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Emoji-favicon is middleware for _middlewared_ servers (connect, express). It ables to use emoji as favicon for web applications.
It helps to identify application in tabs mess.You can find all emojis at [Emoji cheat sheet](http://www.emoji-cheat-sheet.com/).
Totally based on [emoji-images](http://npmjs.org/package/emoji-images) package.
## Usage
Middleware get one string parameter. It should be emoji name. If such image not found it cause an error.
````
var connect = require('connect');
var emojiFavicon = require('emoji-favicon');connect()
.use(emojiFavicon('smiley'));
// ...
````## Test
To see it in action do the following:
1. Install via npm.
2. Go to package directory in node_modules.
3. Start example http server.
4. Then open in browser [http://localhost:8080/](http://localhost:8080/).```
npm install emoji-favicon
cd node_modules/emoji-favicon
npm start
```