This package has been deprecated
Author message:
This package has moved to: @toisu/static
toisu-static
3.0.0 • Public • Published toisu-static
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();
app.use(serveStatic('public'));
http.createServer(app.requestHandler).listen(3000);
Dependencies (1)
Dev Dependencies (8)
Package Sidebar
Install
Weekly Downloads