summaryrefslogtreecommitdiff
path: root/deps/npm/node_modules/slide/README.md
blob: 6e4be2f94e30d28f728b6102c65dfbf2f9d42cba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Slide - a tiny flow control library

Callbacks are simple and easy if you keep the pattern consistent.

Check out the [slide
presentation](http://github.com/isaacs/slide-flow-control/raw/master/nodejs-controlling-flow.pdf),
or the [blog post](http://howto.no.de/flow-control-in-npm).

You'll laugh when you see how little code is actually in this thing.
It's so not-enterprisey, you won't believe it.  It does almost nothing,
but it's super handy.

I use this util in [a real world program](http://npmjs.org/).

You should use it as an example of how to write your own flow control
utilities.  You'll never fully appreciate a flow control lib that you
didn't write yourself.

## Installation

Just copy the files into your project, and use them that way, or
you can do this:

    npm install slide

and then:

    var asyncMap = require("slide").asyncMap
      , chain = require("slide").chain
    // use the power!

Enjoy!