http-server-request-handlers-empty-favicon

0.1.1 • Public • Published

http-server-request-handlers-empty-favicon

NPM version Build Status Coverage Status NSP Status

an http.Server request handler that handles requests for /favicon.ico.

when a request is made to /favicon.ico this middleware will return an empty favicon.

table of contents

installation

npm install http-server-request-handlers-empty-favicon

api

/**
 * @param {IncomingMessage} req 
 * @param {string} [req.url] 
 *
 * @param {ServerResponse} res 
 * @param {Function} res.send 
 * @param {Function} res.setHeader 
 *
 * @param {Function} next 
 *
 * @returns {*} 
 */
function faviconRequestHandler( req, res, next )

usage

basic

var express = require( 'express' )
var app = express()
var emptyFavicon = require( 'http-server-request-handlers-empty-favicon' )
 
app.use( emptyFavicon )

license

MIT License

/http-server-request-handlers-empty-favicon/

    Package Sidebar

    Install

    npm i http-server-request-handlers-empty-favicon

    Weekly Downloads

    1

    Version

    0.1.1

    License

    MIT

    Unpacked Size

    30.6 kB

    Total Files

    19

    Last publish

    Collaborators

    • dentous