package
favicon bounce middleware for koa
npm install koa-faviconGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
Koa middleware for serving a favicon. Based on serve-favicon.
$ npm install koa-faviconconst Koa = require('koa');
const favicon = require('koa-favicon');
const app = new Koa();
app.use(favicon(__dirname + '/public/favicon.ico'));Returns a middleware serving the favicon found on the given path.
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"MIT
juliangruber
julian@juliangruber.com
Estimated unpacked size across 6 packages.
10.7 kB
Includes dependencies.