@hoajs/favicon
v0.1.1
Published
Favicon middleware for Hoa.
Readme
@hoajs/favicon
Favicon middleware for Hoa.
Installation
$ npm i @hoajs/favicon --saveQuick Start
import { Hoa } from 'hoa'
import { favicon } from '@hoajs/favicon'
const app = new Hoa()
app.use(favicon())
app.use(async (ctx) => {
ctx.res.body = 'Hello, Hoa!'
})
export default appDocumentation
The documentation is available on hoa-js.com
Test (100% coverage)
$ npm testLicense
MIT
