Skip to content

hoa-js/adapter

Repository files navigation

@hoajs/adapter

Adapters for Hoa.

Installation

$ npm i @hoajs/adapter --save

Quick Start

import { Hoa } from 'hoa'
import { nodeServer } from '@hoajs/adapter'

const app = new Hoa()
app.extend(nodeServer())

app.use(async (ctx, next) => {
  ctx.res.body = `Hello, Hoa!`
})

app.listen(3000)

Documentation

The documentation is available on hoa-js.com

Test (100% coverage)

$ npm test

License

MIT

About

Adapters for Hoa.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published