1.1.1 • Published 9 years ago

fn-stack v1.1.1

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

fn-stack

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

Installation

Via npm:
$ npm install fn-stack

Via git:

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

Usage

"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.");
});
1.1.1

9 years ago

1.1.0

10 years ago

1.0.0

10 years ago

0.1.4

11 years ago

0.1.3

11 years ago

0.1.2

11 years ago

0.1.1

11 years ago

0.1.0

11 years ago

0.0.1

11 years ago

0.0.0

11 years ago