https://github.com/sjinks/fastify-favicon
Fastify plugin to eliminate errors for favicon.ico requests
https://github.com/sjinks/fastify-favicon
fastify fastify-plugin favicon plugin
Last synced: about 1 year ago
JSON representation
Fastify plugin to eliminate errors for favicon.ico requests
- Host: GitHub
- URL: https://github.com/sjinks/fastify-favicon
- Owner: sjinks
- License: mit
- Created: 2019-06-22T22:14:12.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2025-03-04T01:33:22.000Z (over 1 year ago)
- Last Synced: 2025-03-05T05:02:22.286Z (over 1 year ago)
- Topics: fastify, fastify-plugin, favicon, plugin
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/@wwa/fastify-favicon
- Size: 1.27 MB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# fastify-favicon
[](https://github.com/sjinks/fastify-favicon/actions/workflows/build.yml)
[](https://github.com/sjinks/fastify-favicon/actions/workflows/codeql-analysis.yml)
[](https://github.com/sjinks/fastify-favicon/actions/workflows/package-audit.yml)
A plugin for [Fastify](https://github.com/fastify/fastify) to eliminate exceptions on requests to `/favicon.ico`.
## Installation
```sh
npm install --save-dev @wwa/fastify-favicon
```
## Usage
```js
const fastify = require('fastify')();
fastify.register(require('@wwa/fastify-favicon'));
fastify.listen(3000);
```
Requests to `/favicon.ico` will return a 16x16 black icon.