5.0.0 • Published 7 months ago

@toisu/static v5.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
7 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.0.0

7 months ago

4.1.0

2 years ago

4.0.3

3 years ago

4.0.2

3 years ago

4.0.1

3 years ago

4.0.0

3 years ago