# serial-middleware

> chain middleware (including param) together

Latest version **2.1.0** (published 2015-06-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install serial-middleware
pnpm add serial-middleware
yarn add serial-middleware
bun add serial-middleware
```

## 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 | 2.1.0 |
| Published | 2015-06-30 |
| First published | 2014-11-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 (+6 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Doug Moscrop |
| Maintainers | dmoscrop |
| Keywords | async, express, connect, middleware |

## Links

- npm: https://www.npmjs.com/package/serial-middleware
- Repository: https://github.com/dmoscrop/serial-middleware
- Issues: https://github.com/dmoscrop/serial-middleware/issues
- npm.io page: https://npm.io/package/serial-middleware

## Dependencies (3)

- [lodash](https://npm.io/package/lodash.md) ^3.9.3
- [ensure-array](https://npm.io/package/ensure-array.md) 0.0.5
- [async-waterfall](https://npm.io/package/async-waterfall.md) ^0.1.5

## 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

- 2.1.0 (latest) — 2015-06-30
- 2.0.0 — 2015-06-14
- 1.0.0 — 2014-11-10

## README

Usage
========
```javascript
  var serial = require('serial-middleware');

  router.use(serial(
    function (req, res, next) {
      // append new value
      next(null, 'foo');
    },
    function (req, res, next, foo) {
      // foo is 'foo'
      // more than one supported
      next(null, 'bar', 'baz');
    },
    function (req, res, next, bar, baz) {
      // short circuit
      next(new Error());
    },
    function (req, res, next) {
      // will not be called due to the Error passed to next
    }
  ));
```

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