3.0.0 • Published 4 years ago

toisu-static v3.0.0

Weekly downloads
583
License
MIT
Repository
github
Last release
4 years ago

toisu-static

Greenkeeper badge

A tiny wrapper around serve-static for Toisu!

This module accepts the same arguments as serve-static.

Example

const http = require('http');
const Toisu = require('toisu');
const serveStatic = require('toisu-static');

const app = new Toisu();

// Serve the "public" directory (relative to the app root).
app.use(serveStatic('public'));

http.createServer(app.requestHandler).listen(3000);
3.0.0

4 years ago

2.0.0

6 years ago

1.1.2

7 years ago

1.1.1

8 years ago

1.1.0

8 years ago

1.0.0

8 years ago