5.1.0 • Published 10 months ago

@toisu/static v5.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

toisu-static

A tiny wrapper around serve-static for Toisu!

This module accepts the same arguments as serve-static.

Example

import http from 'http';
import Toisu from '@toisu/toisu';
import serveStatic from '@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);
5.1.0

10 months ago

5.0.0

2 years ago

4.1.0

3 years ago

4.0.3

4 years ago

4.0.2

4 years ago

4.0.1

4 years ago

4.0.0

4 years ago