akoa
Async wrapper for koa server
Last updated 4 months ago by okunishinishi .
MIT · Repository · Bugs · Original npm · Tarball
$ cnpm install akoa 
SYNC missed versions from official npm registry.

akoa

Build Status Code Climate Code Coverage npm Version JS Standard

Async wrapper for koa server

Installation

$ npm install akoa --save

Usage

#!/usr/bin/env node

/**
 * This is an example to run akoa server
 */
'use strict'

const akoa = require('akoa')

void async function () {
  const server = await akoa([
    // Koa middleware
    async function middleware01 (ctx, next) {
      /* ... */
      await
        next()
    }
  ]).listen(3000)

  /* ... */

  await server.close()

}().catch((err) => console.error(err))

License

This software is released under the MIT License.

Links

Maintainers (1)
Downloads
Today 0
This Week 0
This Month 17
Last Day 0
Last Week 0
Last Month 37
Dependencies (5)
Dev Dependencies (11)
Dependents (3)

Copyright 2014 - 2016 © taobao.org |