- Notifications
You must be signed in to change notification settings - Fork16
koajs/favicon
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Koa middleware for serving a favicon. Based onserve-favicon.
$npminstallkoa-favicon
constKoa=require('koa');constfavicon=require('koa-favicon');constapp=newKoa();app.use(favicon(__dirname+'/public/favicon.ico'));
Returns a middleware serving the favicon found on the givenpath
.
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
About
Koa middleware for serving a favicon
Resources
Code of conduct
Security policy
Stars
Watchers
Forks
Packages0
No packages published