Skip to content
IOPA middleware for serving static files
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.vscode
src/middleware
test
tools
.gitignore
LICENSE
NOTICE
README.md
demo.js
index.js
package.json
shippable.yml

README.md

IOPA
iopa-static

Build Status IOPA limerun

NPM

About

iopa-static is IOPA middleware for serving static files

Written in plain javascript for maximum portability to constrained devices

Status

Working prototype

Installation

npm install iopa-static

Usage

const iopa = require('iopa'),
    iopaConnect = require('iopa-connect')
    static = require('iopa-static'),
    http = require('http')

var app = new iopa.App();

app.use(static(app, './public'));

http.createServer(app.buildHttp()).listen(8000);
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.