static for koa extend. used as public assets or static assets.
$ npm install @koex/static
// See more in test
import staticCache from '@koex/static';
import * as Koa from 'koa';
const app = new Koa();
app.use(staticCache('/static', {
dir: path.join(__dirname, './public'),
}));
app.listen(8000, '0.0.0.0', () => {
console.log('koa server start at port: 8000');
});