# yioa

> Koa热更新框架

Latest version **1.0.4** (published 2018-12-28) · ISC license · 0 weekly downloads

## Install

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

## 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 | 1.0.4 |
| Published | 2018-12-28 |
| First published | 2018-12-27 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 6 |
| Unpacked size | 47.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | huaqingyi |
| Maintainers | huaqingyi |
| Keywords | koa, hot, server |

## Links

- npm: https://www.npmjs.com/package/yioa
- Repository: https://github.com/huaqingyi/yioa
- Homepage: https://github.com/huaqingyi/yioa#readme
- Issues: https://github.com/huaqingyi/yioa/issues
- npm.io page: https://npm.io/package/yioa

## Dependencies (6)

- [koa](https://npm.io/package/koa.md) ^2.6.2
- [rxjs](https://npm.io/package/rxjs.md) ^6.3.3
- [walk](https://npm.io/package/walk.md) ^2.3.14
- [lodash](https://npm.io/package/lodash.md) ^4.17.11
- [chokidar](https://npm.io/package/chokidar.md) ^2.0.4
- [html-webpack-plugin](https://npm.io/package/html-webpack-plugin.md) ^3.2.0

## Recent versions

- 1.0.4 (latest) — 2018-12-28
- 1.0.3 — 2018-12-28
- 1.0.2 — 2018-12-28
- 1.0.1 — 2018-12-27
- 1.0.0 — 2018-12-27

## README

## 这是一个Koa2热更新框架
## 沿用Koa基础上继承
```
安装: npm i yioa --save

==========================================================
```
## 下面是一部分script
```

import path from 'path';
import { Application } from 'yioa'

let app = new Application;

app.watch({
    // -- 监听目录
    src: [
        path.resolve(__dirname), 
        path.resolve(__dirname, '../src')
    ],
    // -- 入口文件
    main: __filename,
    ext?: string | string[] | callback
}).use(async (ctx, next) => {
    ctx.body = '5555';
    // next();
}).use(async ctx => {
    ctx.body = 'test ...';
}).listen(3000)

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