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

1.0.2 • Public • Published

static

NPM version Coverage Status Dependencies Build Status license issues

static for koa extend. used as public assets or static assets.

Install

$ npm install @koex/static

Usage

// 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');
});

Related

Readme

Keywords

none

Package Sidebar

Install

npm i @koex/static

Weekly Downloads

1

Version

1.0.2

License

MIT

Unpacked Size

19 kB

Total Files

12

Last publish

Collaborators

  • uniquecolesmith