# akoa

> Async wrapper for koa server

Latest version **3.2.1** (published 2020-05-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install akoa
pnpm add akoa
yarn add akoa
bun add akoa
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.2.1 |
| Published | 2020-05-24 |
| First published | 2016-07-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=8 |
| Dependencies | 4 |
| Unpacked size | 16.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Taka Okunishi |
| Maintainers | okunishinishi |

## Links

- npm: https://www.npmjs.com/package/akoa
- Repository: https://github.com/a-labo/akoa
- Homepage: https://github.com/a-labo/akoa#readme
- Issues: https://github.com/a-labo/akoa/issues
- npm.io page: https://npm.io/package/akoa

## Dependencies (4)

- [koa-send](https://npm.io/package/koa-send.md) ^5.0.0
- [@koa/router](https://npm.io/package/@koa/router.md) ^8.0.8
- [koa-compose](https://npm.io/package/koa-compose.md) ^4.1.0
- [koa-bodyparser](https://npm.io/package/koa-bodyparser.md) ^4.3.0

## Recent versions

- 3.2.1 (latest) — 2020-05-24
- 3.2.0 — 2020-05-10
- 3.1.0 — 2020-02-02
- 3.0.0 — 2019-10-19
- 2.0.9 — 2019-04-25
- 2.0.8 — 2019-02-24
- 2.0.7 — 2018-12-27
- 2.0.6 — 2018-09-04
- 2.0.5 — 2018-09-04
- 2.0.4 — 2018-03-19
- 2.0.3 — 2018-03-19
- 2.0.2 — 2018-03-19
- 2.0.1 — 2018-03-19
- 2.0.0 — 2018-03-19
- 1.4.5 — 2017-01-04
- … 11 more at https://npm.io/package/akoa/versions

## README

akoa
==========

<!---
This file is generated by ape-tmpl. Do not update manually.
--->

<!-- Badge Start -->
<a name="badges"></a>

[![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

<!-- Badge End -->


<!-- Description Start -->
<a name="description"></a>

Async wrapper for koa server

<!-- Description End -->


<!-- Overview Start -->
<a name="overview"></a>



<!-- Overview End -->


<!-- Sections Start -->
<a name="sections"></a>

<!-- Section from "doc/guides/01.Installation.md.hbs" Start -->

<a name="section-doc-guides-01-installation-md"></a>

Installation
-----

```bash
$ npm install akoa --save
```


<!-- Section from "doc/guides/01.Installation.md.hbs" End -->

<!-- Section from "doc/guides/02.Usage.md.hbs" Start -->

<a name="section-doc-guides-02-usage-md"></a>

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))

```


<!-- Section from "doc/guides/02.Usage.md.hbs" End -->


<!-- Sections Start -->


<!-- LICENSE Start -->
<a name="license"></a>

License
-------
This software is released under the [MIT License](https://github.com/a-labo/akoa/blob/master/LICENSE).

<!-- LICENSE End -->


<!-- Links Start -->
<a name="links"></a>

Links
------



<!-- Links End -->

---
_Source: https://npm.io/package/akoa · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
