This package has been deprecated

Author message:

This package has moved to: @toisu/static

toisu-static

3.0.0 • Public • Published

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);

/toisu-static/

    Package Sidebar

    Install

    npm i toisu-static

    Weekly Downloads

    0

    Version

    3.0.0

    License

    MIT

    Unpacked Size

    10.8 kB

    Total Files

    13

    Last publish

    Collaborators

    • qubyte