@zcorky/koa-static
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

koa-static

NPM version Coverage Status Dependencies Build Status license issues

Simple OnError for Koa

Install

$ npm install @zcorky/koa-static

Usage

// See more in test
import staticCache from '@zcorky/koa-static';

import * as Koa from 'koa';
const app = new Koa();

// fallback
app.use(staticCache('/static', {
  dir: path.join(__dirname, './public'),
}));

app.listen(8000, '0.0.0.0', () => {
  console.log('koa server start at port: 8000');
});

Related

Readme

Keywords

none

Package Sidebar

Install

npm i @zcorky/koa-static

Weekly Downloads

0

Version

0.0.1

License

MIT

Unpacked Size

10.1 kB

Total Files

9

Last publish

Collaborators

  • uniquecolesmith