# iopa-static

> Static File Server Middleware for the IOPA Stack for Node.js

Latest version **1.4.1** (published 2016-07-05) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install iopa-static
pnpm add iopa-static
yarn add iopa-static
bun add iopa-static
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.4.1 |
| Published | 2016-07-05 |
| First published | 2016-03-11 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 4.0.0 |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | IOPA |
| Maintainers | iopa |
| Keywords | iopa, limerun, owin, middleware, router, route, http, connect, express, promise, async, framework, node, tasks |

## Links

- npm: https://www.npmjs.com/package/iopa-static
- Repository: https://github.com/iopa-io/iopa-static
- Homepage: http://iopa.io
- Issues: https://github.com/iopa-io/iopa-static/issues
- npm.io page: https://npm.io/package/iopa-static

## Dependencies (2)

- [iopa](https://npm.io/package/iopa.md) ^1.4.0
- [mime](https://npm.io/package/mime.md) ^1.3.4

## Alternatives

- [express-promise-router](https://npm.io/package/express-promise-router.md) — 736.1K weekly downloads
- [next-usequerystate](https://npm.io/package/next-usequerystate.md) — 29.8K weekly downloads
- [@bitkyc08/opencodex](https://npm.io/package/@bitkyc08/opencodex.md) — 4.6K weekly downloads
- [lynkr](https://npm.io/package/lynkr.md) — 575 weekly downloads
- [baremetal.js](https://npm.io/package/baremetal.js.md) — 42 weekly downloads

## Recent versions

- 1.4.1 (latest) — 2016-07-05
- 1.3.2 — 2016-03-11
- 1.3.1 — 2016-03-11
- 1.3.0 — 2016-03-11

## README

# [![IOPA](http://iopa.io/iopa.png)](http://iopa.io)<br> iopa-static 

[![Build Status](https://api.shippable.com/projects/56e211399d043da07bb527cb/badge?branchName=master)](https://app.shippable.com/projects/56e211399d043da07bb527cb) 
[![IOPA](https://img.shields.io/badge/iopa-middleware-99cc33.svg?style=flat-square)](http://iopa.io)
[![limerun](https://img.shields.io/badge/limerun-certified-3399cc.svg?style=flat-square)](https://nodei.co/npm/limerun/)

[![NPM](https://nodei.co/npm/iopa-static.png?downloads=true)](https://nodei.co/npm/iopa-static/)

## 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
``` js
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);
```

---
_Source: https://npm.io/package/iopa-static · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
