@koex/favicon
v0.0.1
Published
favicon for koa extend
Downloads
3
Readme
favicon
favicon for koa extend.
Install
$ npm install @koex/favicon
Usage
// See more in test
import { join } from 'path';
import favicon from '@koex/favicon';
import * as Koa from 'koa';
const app = new Koa();
app.use(favicon({
path: join(__dirname, 'assets', 'favicon.ico'),
}));
app.use(ctx => {
ctx.body = 'Hello, Koex!';
});
app.listen(8000, '0.0.0.0', () => {
console.log('koa server start at port: 8000');
});