Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

iopa-static

1.4.1 • Public • Published

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

install

npm i iopa-static

Downloadsweekly downloads

13

version

1.4.1

license

Apache-2.0

homepage

iopa.io

repository

Gitgithub

last publish

collaborators

  • avatar