Home

Awesome

toa-static

A static server module for toa.

NPM version Build Status Downloads

toa

Demo

'use strict';

var Toa = require('toa')
var toaStatic = require('toa-static')('examples/static')

use as middleware:

var app = Toa()
app.use(toaStatic)
app.listen(3000)

Installation

npm install toa-static

API

var ToaStatic = require('toa-static')

ToaStatic(options)

Return a thunk function.

License

The MIT License (MIT)