{"repo":"expressjs/serve-favicon","free":true,"listed":false,"github":"https://github.com/expressjs/serve-favicon","clone":"git clone https://github.com/expressjs/serve-favicon.git","description":"favicon serving middleware","language":"JavaScript","stars":627,"topics":["javascript","nodejs","expressjs","middleware","favicon"],"license":"MIT","category":"dev-tools","readme_excerpt":"serve-favicon [![NPM Version][npm-image]][npm-url] [![NPM Downloads][downloads-image]][downloads-url] [![Linux Build Status][ci-image]][ci-url] [![Coverage Status][coveralls-image]][coveralls-url] [![OpenSSF Scorecard Badge][ossf-scorecard-badge]][ossf-scorecard-visualizer] Node.js middleware for serving a favicon. A favicon is a visual cue that client software, like browsers, use to identify a site. For an example and more information, please visit the Wikipedia article on favicons. Why use this module? - User agents request favicon.ico frequently and indiscriminately, so you may wish to exclude these requests from your logs by using this middleware before your logger middleware. - This module caches the icon in memory to improve performance by skipping disk access. - This module provides an ETag based on the contents of the icon, rather than file system properties. - This module will serve with the most compatible Content-Type . Note This module is exclusively for serving the \"default, implicit favicon\", which is GET /favicon.ico . For additional vendor-specific icons that require HTML markup, additional middleware is required to serve the relevant files, for example serve-static. Install This is a Node.js module available through the npm registry. Installation is done using the npm install command: API favicon(path, options) Create new middleware to serve a favicon from the given path to a favicon file. path may also be a Buffer of the icon to serve. Options Serve favicon ","default_branch":null,"files":null,"tree":[],"storefront":"/r/expressjs","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/expressjs/serve-favicon/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}