{"library":"serve-favicon","type":"library","category":null,"description":"serve-favicon is a Node.js middleware designed for efficiently serving the `favicon.ico` file in web applications, primarily within the Express.js and Connect.js ecosystems. Currently at version 2.5.1, this package is actively maintained, receiving updates primarily for dependency management and CI improvements, rather than frequent feature additions. Its core purpose is to optimize favicon delivery by caching the icon in memory, generating robust ETags based on file content, and correctly setting the `Content-Type` header. A key differentiator is its specific focus on the default `/favicon.ico` path, ensuring that these high-frequency requests are handled quickly and bypass subsequent middleware in the stack, thereby improving overall application performance by reducing unnecessary processing for static assets.","language":"javascript","status":"active","version":"2.5.1","tags":["javascript","express","favicon","middleware"],"install":[{"cmd":"npm install serve-favicon","imports":["const favicon = require('serve-favicon')","const favicon = require('serve-favicon')","favicon(path.join(__dirname, 'public', 'favicon.ico'), { maxAge: '1d' })"]},{"cmd":"yarn add serve-favicon","imports":[]},{"cmd":"pnpm add serve-favicon","imports":[]}],"homepage":null,"github":"https://github.com/expressjs/serve-favicon","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/serve-favicon","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/serve-favicon/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Wed Jun 17","next_check":"Tue Jul 21","install_tag":null}}