# koa-app

> koa, bundled with middlewares and plugins

Latest version **0.1.1** (published 2014-06-29) · MIT license · 0 weekly downloads

## Install

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

## 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.1.1 |
| Published | 2014-06-29 |
| First published | 2014-05-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 14 |
| Known vulnerabilities | 0 (+6 in 3 direct dependencies) |
| Install scripts | no |
| GitHub stars | 2 |
| Author | RobinQu |
| Maintainers | robinqu |
| Keywords | koa, app, middlewares |

## Links

- npm: https://www.npmjs.com/package/koa-app
- Repository: https://github.com/RobinQu/koa-app
- Issues: https://github.com/RobinQu/koa-app/issues
- npm.io page: https://npm.io/package/koa-app

## Dependencies (14)

- [co](https://npm.io/package/co.md) ~3.0.6
- [koa](https://npm.io/package/koa.md) ~0.6.1
- [debug](https://npm.io/package/debug.md) ^0.8.1
- [extend](https://npm.io/package/extend.md) ^1.2.1
- [koa-body](https://npm.io/package/koa-body.md) ~0.0.4
- [koa-gzip](https://npm.io/package/koa-gzip.md) ~0.1.0
- [koa-i18n](https://npm.io/package/koa-i18n.md) ~0.1.4
- [koa-sess](https://npm.io/package/koa-sess.md) ~0.3.1
- [thunkify](https://npm.io/package/thunkify.md) ~2.1.1
- [koa-flash](https://npm.io/package/koa-flash.md) ~0.0.3
- [koa-locale](https://npm.io/package/koa-locale.md) ~0.1.1
- [koa-locals](https://npm.io/package/koa-locals.md) ~0.3.0
- [koa-static](https://npm.io/package/koa-static.md) ~1.4.5
- [koa-methodoverride](https://npm.io/package/koa-methodoverride.md) ~0.3.1

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 0.1.1 (latest) — 2014-06-29
- 0.1.0 — 2014-05-16

## README

# koa-app

An opinionated selection of koa middlewares/plugins to boost the project scaffolding.


忍受不了每次新建一个koa应用都要不断的去`npm install`各种`middlewares`，那就试试这个吧。

我不做框架，只做大自然的搬运工！


## Bundled Middlewares

* koa-body
* koa-flash
* koa-gzip
* koa-i18n
* koa-locale
* koa-locals
* koa-methodoverride
* koa-sess
* koa-static

## Usage

```js
var koa = require("koa-app");
var app = koa();

//important!
app.configure({
  
  //static file folders to be hosted
  statics: ["folder1", "folder2"],
  
  // options passed to `koa-sess`
  session: {},
  
  //optiosn passed to `koa-i18n`
  i18n: {}
  
  //if we should generate random `app.keys` for you
  generateKey: true
  
  
});

app.listen({
  // bind port
  port: 8080,
  
  // using SSL or not
  secured: true,
  
  // should provide cert and private key content
  certs: {
    key: "xxxx",
    cert: xxx
  },
  
  // force to drop all socket connections on `server.close()`
  autoDrop: true
  
}, function() {
  console.log("app is up and running");
});

```

## License

See [LICENSE](./LICENSE)

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