0.0.3 • Published 5 years ago

@tdqs/koa-static v0.0.3

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

@tdqs/koa-static

The MIT License (MIT)

@tdqs/koa-static koa middleware.

Table of Contents

Installation
API documentation
Example

Installation

    $ npm install @tdqs/koa-static

API documentation

Getting Started

import * as Koa from 'koa';
import { koaStatic } from '@tdqs/koa-static';

const app = new Koa();

//different to koa-static with prefixUrl and redirectUrl
//also can use angular
app.use(koaStatic(__dirname)).listen(8080);

Example

Following example could be found inside /tests directory.