# fn-stack

> Runs functions asynchronously.

Latest version **1.1.1** (published 2015-02-12) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

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

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.1.1 |
| Published | 2015-02-12 |
| First published | 2013-06-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Steffen Bruchmann |
| Maintainers | sbruchmann |

## Links

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

## Dependencies (2)

- [neo-async](https://npm.io/package/neo-async.md) ^0.5.3
- [async-stacktrace](https://npm.io/package/async-stacktrace.md) 0.0.2

## Recent versions

- 1.1.1 (latest) — 2015-02-12
- 1.1.0 — 2014-08-27
- 1.0.0 — 2014-07-31
- 0.1.4 — 2013-09-05
- 0.1.3 — 2013-09-04
- 0.1.2 — 2013-09-04
- 0.1.1 — 2013-07-26
- 0.1.0 — 2013-06-17
- 0.0.1 — 2013-06-15
- 0.0.0 — 2013-06-15

## README

# fn-stack

Use generic middleware in your JavaScript applications (similar to [stack][stack] by [creationix][creationix]).

## Installation

Via [npm][npm]:  
`$ npm install fn-stack`

Via [git][git]:<br />

```sh
$ git clone git@github.com:sbruchmann/fn-stack.git
$ cd fn-stack/
$ npm install
```

## Usage

```javascript
"use strict";

var FNStack = require("fn-stack");
var stack = new FNStack();

stack.push(function log(value, next) {
    process.nextTick(function() {
        console.log(value); // => "Hello, world!"
        next(null);
    });
});

stack.run(["Hello, world!"], function onDone(err) {
    if (err) {
        throw err;
    }

    console.log("Done.");
});
```

[creationix]: http://creationix.com
[git]: http://git-scm.org
[npm]: http://npmjs.org
[stack]: https://npmjs.org/stack

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