0.5.8 • Published 9 years ago

koa-static-api v0.5.8

Weekly downloads
1
License
ISC
Repository
github
Last release
9 years ago

Static file serving middleware. This module uses as dependency only core node.js modules. Position for this middleware do not important

Installation

$ npm install koa-static-api

API

var koa = require('koa');
var app = koa();
var staticFolder = require('koa-static-api')
app.use(staticFolder(opt));

Options

  • cache Browser cache max-age in milliseconds. Defaults to 'no-cache'
  • root root directory string. nothing above this root directory can be served. Defaults to '/public'
  • index index file. Defaults to 'index.html'

License

ISC

0.5.8

9 years ago

0.5.1

9 years ago

0.1.1

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago