# koa-coffee

> Drop-in replacement for koa. Idiomatic koa for coffee lovers.

Latest version **0.1.0** (published 2015-09-05) · 0 weekly downloads

## Install

```sh
npm install koa-coffee
pnpm add koa-coffee
yarn add koa-coffee
bun add koa-coffee
```

## Health

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

Positive: no vulnerabilities; high maintenance score.

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

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2015-09-05 |
| First published | 2015-09-05 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 (+2 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Zach Kelling |
| Maintainers | zeekay |

## Links

- npm: https://www.npmjs.com/package/koa-coffee
- Repository: https://github.com/zeekay/koa-coffee
- Homepage: https://github.com/zeekay/koa-coffee#readme
- Issues: https://github.com/zeekay/koa-coffee/issues
- npm.io page: https://npm.io/package/koa-coffee

## Dependencies (2)

- [koa](https://npm.io/package/koa.md) ^1.0.0
- [koa-router](https://npm.io/package/koa-router.md) ^5.1.2

## Recent versions

- 0.1.0 (latest) — 2015-09-05
- 0.0.1 — 2015-09-05

## README

# koa-coffee
Wrap non-generator functions so that koa middleware can be written more
succintly in CoffeeScript (and JavaScript). Drop-in replacement for koa.

As an added-bonus, included drop-in replacement for koa-router as well.

## Usage
```coffeescript
app    = do require 'koa-coffee/koa'
router = do require 'koa-coffee/router'

# A typical handler will explicitly yield something to avoid koa exploding...
router.get '/foo', ->
  @body = 'foo'
  yield return

# ...but it's no longer necessary!
router.get '/bar', ->
  @body = 'bar'

app
  .use(router.routes())
  .use(router.allowedMethods())

app.listen 3000

```

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