request-favicon

2.0.2 • Public • Published

request-favicon

npm version npm download Build Status Greenkeeper badge

An express.js middleware for handling noisy favicon.ico

Modern browsers usually asks for favicon of the website. Having a favicon in a Web page is a good thing (normally).

However it is not always desired and sometime developers need a way to avoid the extra payload.

Nice way to handle that is to send 204 status code for /favicon.ico requests.

Install

npm install request-favicon

Example

const express = require('express');
const favicon = require('request-favicon');
 
const app = express();
app.use(favicon());
 
// Add your routes here, etc.
 
app.listen(3000);

License

MIT

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.0.2
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 2.0.2
    1
  • 2.0.1
    0
  • 2.0.0
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i request-favicon

Weekly Downloads

1

Version

2.0.2

License

ISC

Unpacked Size

5.45 kB

Total Files

5

Last publish

Collaborators

  • honzahommer