Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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 month 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 (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-10-29T21:32:07.000Z (about 2 months ago)
- Last Synced: 2024-10-29T23:45:30.684Z (about 2 months ago)
- Topics: fastify, fastify-plugin, favicon, plugin
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/@wwa/fastify-favicon
- Size: 1.2 MB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# fastify-favicon
[![Build and Test](https://github.com/sjinks/fastify-favicon/actions/workflows/build.yml/badge.svg)](https://github.com/sjinks/fastify-favicon/actions/workflows/build.yml)
[![CodeQL Analysis](https://github.com/sjinks/fastify-favicon/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/sjinks/fastify-favicon/actions/workflows/codeql-analysis.yml)
[![Package Audit](https://github.com/sjinks/fastify-favicon/actions/workflows/package-audit.yml/badge.svg)](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.