Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    koa-faviconpublic

    koa-favicon Build Status

    Koa middleware for serving a favicon. Based on serve-favicon.

    Installation

    $ npm install koa-favicon

    Example

    const Koa = require('koa');
    const favicon = require('koa-favicon');
    const app = new Koa();
     
    app.use(favicon(__dirname + '/public/favicon.ico'));

    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.

    License

    MIT

    install

    npm i koa-favicon

    Downloadsweekly downloads

    6,613

    version

    2.0.1

    license

    MIT

    repository

    githubgithub

    last publish

    collaborators

    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar