# miniware

> The smallest middleware implementation in the world

Latest version **0.0.4** (published 2013-08-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install miniware
pnpm add miniware
yarn add miniware
bun add miniware
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.4 |
| Published | 2013-08-26 |
| First published | 2013-08-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Kai Davenport |
| Maintainers | binocarlos |
| Keywords | middleware |

## Links

- npm: https://www.npmjs.com/package/miniware
- Repository: https://github.com/binocarlos/miniware
- Issues: https://github.com/binocarlos/miniware/issues
- npm.io page: https://npm.io/package/miniware

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 0.0.4 (latest) — 2013-08-26
- 0.0.3 — 2013-08-26
- 0.0.2 — 2013-08-25
- 0.0.1 — 2013-08-18

## README

miniware
========

The smallest middleware implementation in the world

## installation

	$ npm install miniware

## usage

A new miniware object represents a stack of functions to cycle through just like connect middleware.

The only different is that req is a pure javascript object and rep becomes **reply** which is a standard node.js callback function.

An example of creating a tiny middleware stack and running a request through it.

```js
var miniware = require('miniware');

var tinyapp = miniware();

tinyapp.use(function(req, reply, next){
  req.url.should.equal('/hello');
  next();
})

tinyapp.use(function(req, reply, next){
  reply(null, 20);
})

tinyapp({
  url:'/hello'
}, function(error, result){
  result.should.equal(20);
})

```

## licence

MIT

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