Licence
MIT
Version
1.0.1
Deps
5
Size
14 kB
Vulns
0
Weekly
0
koa-reload-middleware
Reload a middleware if is modified during development.
Installation
yarn
Usage
import Koa from 'koa';
import reload from 'koa-reload-middleware';
new Koa().use(reload(() => import('./route'))).listen();
Now change
./routeand the next time that the route is requested, the route will be reloaded without the entire server restarting.