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

0.0.3 • Public • Published

@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.

Package Sidebar

Install

npm i @tdqs/koa-static

Weekly Downloads

1

Version

0.0.3

License

MIT

Unpacked Size

3.61 kB

Total Files

4

Last publish

Collaborators

  • gzq