Async wrapper for koa server
npm install akoaakoa
==========
[![Build Status][bd_travis_shield_url]][bd_travis_url]
[![npm Version][bd_npm_shield_url]][bd_npm_url]
[![JS Standard][bd_standard_shield_url]][bd_standard_url]
[bd_repo_url]: https://github.com/a-labo/akoa
[bd_travis_url]: http://travis-ci.org/a-labo/akoa
[bd_travis_shield_url]: http://img.shields.io/travis/a-labo/akoa.svg?style=flat
[bd_travis_com_url]: http://travis-ci.com/a-labo/akoa
[bd_travis_com_shield_url]: https://api.travis-ci.com/a-labo/akoa.svg?token=
[bd_license_url]: https://github.com/a-labo/akoa/blob/master/LICENSE
[bd_codeclimate_url]: http://codeclimate.com/github/a-labo/akoa
[bd_codeclimate_shield_url]: http://img.shields.io/codeclimate/github/a-labo/akoa.svg?style=flat
[bd_codeclimate_coverage_shield_url]: http://img.shields.io/codeclimate/coverage/github/a-labo/akoa.svg?style=flat
[bd_gemnasium_url]: https://gemnasium.com/a-labo/akoa
[bd_gemnasium_shield_url]: https://gemnasium.com/a-labo/akoa.svg
[bd_npm_url]: http://www.npmjs.org/package/akoa
[bd_npm_shield_url]: http://img.shields.io/npm/v/akoa.svg?style=flat
[bd_standard_url]: http://standardjs.com/
[bd_standard_shield_url]: https://img.shields.io/badge/code%20style-standard-brightgreen.svg
Async wrapper for koa server
Installation
-----
``bash`
$ npm install akoa --save
Usage
---------
`javascript
#!/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
------