# koa-reload-middleware

> Reload a middleware if is modified during development.

Latest version **1.0.1** (published 2019-01-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install koa-reload-middleware
pnpm add koa-reload-middleware
yarn add koa-reload-middleware
bun add koa-reload-middleware
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2019-01-30 |
| First published | 2019-01-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 5 |
| Unpacked size | 14.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | jameslnewell |

## Links

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

## Dependencies (5)

- [chalk](https://npm.io/package/chalk.md) ^2.4.2
- [debug](https://npm.io/package/debug.md) ^4.1.1
- [@types/koa](https://npm.io/package/@types/koa.md) ^2.0.48
- [@types/node](https://npm.io/package/@types/node.md) ^9.6.40
- [@types/debug](https://npm.io/package/@types/debug.md) ^0.0.31

## Recent versions

- 1.0.1 (latest) — 2019-01-30
- 1.0.0 — 2019-01-30

## README

# koa-reload-middleware

[![CircleCI](https://circleci.com/gh/jameslnewell/koa-reload-middleware.svg?style=svg)](https://circleci.com/gh/jameslnewell/koa-reload-middleware)

Reload a middleware if is modified during development.

## Installation

```sh
yarn
```

## Usage

```js
import Koa from 'koa';
import reload from 'koa-reload-middleware';

new Koa().use(reload(() => import('./route'))).listen();
```

> Now change `./route` and the next time that the route is requested, the route will be reloaded without the entire server restarting.

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