fastify-no-icon
TypeScript icon, indicating that this package has built-in type declarations

6.0.0 • Public • Published

fastify-no-icon

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.

Example

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 error

License

MIT License

Readme

Keywords

Package Sidebar

Install

npm i fastify-no-icon

Weekly Downloads

3,024

Version

6.0.0

License

MIT

Unpacked Size

3.62 kB

Total Files

8

Last publish

Collaborators

  • jsumners
  • kibertoad