Koa middleware for serving a favicon. Based on serve-favicon.
Installation
$ npm install koa-favicon
Example
const Koa = ;const favicon = ;const app = ; app;
API
favicon(path, [options])
Returns a middleware serving the favicon found on the given path
.
options
maxAge
cache-control max-age directive in ms, defaulting to 1 day.mime
specify the mime-type of the favicon, defaults to "image/x-icon"
License
MIT