package
A simple Fastify plugin to ignore favicon requests
npm install fastify-no-iconGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
Estimated unpacked size across 2 packages.
49.5 kB
Includes dependencies.
This is a simple plugin for Fastify to deal with annoying /favicon.ico
requests. Under normal operation Fastify will throw an error because a route
isn't registered to handle the request. This plugin merely gives it one.
const fastify = require('fastify')()
fastify.register(require('fastify-no-icon'))
fastify.listen({
port: 3000
})
// curl 127.0.0.1:3000/favicon.ico => empty 404 and no thrown errorkibertoad
iselwin@gmail.com