# createrest-koa

> Koa2 middleware to generate routes by createRest

Latest version **0.14.2** (published 2017-12-26) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.14.2 |
| Published | 2017-12-26 |
| First published | 2017-03-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Sergey Sova |
| Maintainers | lestad |

## Links

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

## Dependencies (1)

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

## Recent versions

- 0.14.2 (latest) — 2017-12-26
- 0.14.1 — 2017-11-27
- 0.14.0 — 2017-11-24
- 0.13.0 — 2017-10-13
- 0.12.0 — 2017-07-19
- 0.11.0 — 2017-07-19
- 0.10.6 — 2017-07-12
- 0.10.5 — 2017-07-04
- 0.2.1 — 2017-06-11
- 0.2.0 — 2017-06-11
- 0.1.0 — 2017-06-11
- 0.0.0-reserved — 2017-03-06

## README

# createrest-koa [![npm](https://img.shields.io/npm/v/createrest-koa.svg)](https://npmjs.com/createrest-koa)

## Readme

[createRest](/packages/createrest) generator for Koa2

## Usage example

```js
const { createRest, printRoutes } = require('createrest')
const { createKoaRouter } = require('createrest-koa')
const Koa = require('koa')

const app = new Koa()

const routes = createRest(root => {
  // Your routes here
})
const router = createKoaRouter(routes)


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

app.listen(3000, () => {
  printRoutes(routes)
  console.log('Listening port 3000...')
})
```

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