# connect-chain

> Connect-Chain composes a connect middleware from a chain of middlewares to be called in series.

Latest version **0.0.1** (published 2013-12-17) · 0 weekly downloads

## Install

```sh
npm install connect-chain
pnpm add connect-chain
yarn add connect-chain
bun add connect-chain
```

## 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.1 |
| Published | 2013-12-17 |
| First published | 2013-12-17 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Maintainers | asalant |
| Keywords | connect, chain, middleware, express |

## Links

- npm: https://www.npmjs.com/package/connect-chain
- Repository: https://github.com/goodeggs/connect-chain
- Homepage: http://goodeggs.github.com/connect-chain/
- Issues: https://github.com/goodeggs/connect-chain/issues
- npm.io page: https://npm.io/package/connect-chain

## 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.1 (latest) — 2013-12-17

## README

Connect-Chain
-------------

Connect-Chain composes a connect middleware from a chain of middlewares to be called in series.

An error passed to `next` or thrown in a middleware will short circuit the chain and be
passed to the next middleware in the connect middleware chain.

Usage
-------------

```
var express = require('express');
var chain = require('connect-chain');

var app = express();

app.use(chain(middleware1, middleware2));
```

```
var middleware = chain(middleware1, middleware2);
middleware(req, res, next);
```

Contributing
-------------

```
$ git clone https://github.com/goodeggs/connect-chain && cd connect-chain
$ npm install
$ npm test
```

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