# connect-stack

> Create a new connect middleware function from multiple other middleware functions

Latest version **0.1.6** (published 2014-01-31) · MIT license · 0 weekly downloads

## Install

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

## 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.1.6 |
| Published | 2014-01-31 |
| First published | 2013-07-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | spion |
| Maintainers | spion |
| Keywords | connect, stack, multiple, bundle, middleware |

## Links

- npm: https://www.npmjs.com/package/connect-stack
- Repository: https://github.com/doxout/connect-stack
- Issues: https://github.com/doxout/connect-stack/issues
- npm.io page: https://npm.io/package/connect-stack

## Alternatives

- [gamedig](https://npm.io/package/gamedig.md) — 29.3K weekly downloads
- [join-monster](https://npm.io/package/join-monster.md) — 12.8K weekly downloads
- [masked](https://npm.io/package/masked.md) — 5.5K weekly downloads
- [@comunica/actor-query-process-explain-logical](https://npm.io/package/@comunica/actor-query-process-explain-logical.md) — 4.7K weekly downloads
- [@veracity/vui](https://npm.io/package/@veracity/vui.md) — 4.6K weekly downloads

## Recent versions

- 0.1.6 (latest) — 2014-01-31
- 0.1.5 — 2014-01-29
- 0.1.4 — 2014-01-28
- 0.1.3 — 2013-08-06
- 0.1.2 — 2013-07-06
- 0.1.1 — 2013-07-06

## README

# connect-stack

Stack multiple connect/express middlewares into a single middleware function

# example


myauth.js:

```js
var stack = require('connect-stack'),
    connect = require('connect');

function myAuth(req, res, next) {
    //TODO: write auth code
}

module.exports = stack(connect.cookieParser(), 
    connect.session({secret: 'hush'}),
    myAuth);

```

app.js

```js
app.use('/secret-area', require('./myauth'));
```

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