Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dead-horse/callback_hell

examples for handling callback hell
https://github.com/dead-horse/callback_hell

Last synced: 3 months ago
JSON representation

examples for handling callback hell

Awesome Lists containing this project

README

        

callback_hell
=============

Examples for callback hell

## Modules

* [async](https://github.com/caolan/async)
* [eventproxy](https://github.com/JacksonTian/eventproxy)
* [generator && co](https://github.com/visionmedia/co)
* [q](https://github.com/kriskowal/q)
* [step](https://github.com/creationix/step)
* [Wind.js](http://windjs.org/cn/)
* [Sep](https://github.com/substack/node-seq)

## Examples

### Series

* [nested](https://github.com/dead-horse/callback_hell/blob/master/series/callback.js)
* [async](https://github.com/dead-horse/callback_hell/blob/master/series/async.js)
* [eventproxy](https://github.com/dead-horse/callback_hell/blob/master/series/eventproxy.js)
* [generator && co](https://github.com/dead-horse/callback_hell/blob/master/series/generator.js)
* [q](https://github.com/dead-horse/callback_hell/blob/master/series/q.js)
* [step](https://github.com/dead-horse/callback_hell/blob/master/series/step.js)

### parallel

* [nested](https://github.com/dead-horse/callback_hell/blob/master/parallel/callback.js)
* [async](https://github.com/dead-horse/callback_hell/blob/master/parallel/async.js)
* [eventproxy](https://github.com/dead-horse/callback_hell/blob/master/parallel/eventproxy.js)
* [generator && co](https://github.com/dead-horse/callback_hell/blob/master/parallel/generator.js)
* [q](https://github.com/dead-horse/callback_hell/blob/master/parallel/q.js)
* [step](https://github.com/dead-horse/callback_hell/blob/master/parallel/step.js)

### Limitedly parallel

* [async](https://github.com/dead-horse/callback_hell/blob/master/limited_parallel/async.js)
* [generator](https://github.com/dead-horse/callback_hell/blob/master/limited_parallel/generator.js)
* [eventproxy](https://github.com/dead-horse/callback_hell/blob/master/limited_parallel/eventproxy.js)

### count_lines

count all js files' total line in giving folder.

```
$ node count_lines/async.js .
/Users/deadhorse/git/callback_hell/parallel/async.js has 36 lines
/Users/deadhorse/git/callback_hell/parallel/callback.js has 33 lines
/Users/deadhorse/git/callback_hell/parallel/eventproxy.js has 30 lines
/Users/deadhorse/git/callback_hell/parallel/generator.js has 21 lines
/Users/deadhorse/git/callback_hell/parallel/proxy.js has 19 lines
/Users/deadhorse/git/callback_hell/parallel/q.js has 31 lines
/Users/deadhorse/git/callback_hell/parallel/step.js has 34 lines
/Users/deadhorse/git/callback_hell/count_lines/async.js has 54 lines
/Users/deadhorse/git/callback_hell/count_lines/callback.js has 39 lines
/Users/deadhorse/git/callback_hell/count_lines/eventproxy.js has 52 lines
/Users/deadhorse/git/callback_hell/count_lines/generator.js has 34 lines
/Users/deadhorse/git/callback_hell/count_lines/q.js has 55 lines
/Users/deadhorse/git/callback_hell/count_lines/step.js has 72 lines
/Users/deadhorse/git/callback_hell/count_lines/utils.js has 15 lines
/Users/deadhorse/git/callback_hell/series/async.js has 19 lines
/Users/deadhorse/git/callback_hell/series/callback.js has 24 lines
/Users/deadhorse/git/callback_hell/series/eventproxy.js has 23 lines
/Users/deadhorse/git/callback_hell/series/generator.js has 22 lines
/Users/deadhorse/git/callback_hell/series/proxy.js has 22 lines
/Users/deadhorse/git/callback_hell/series/q.js has 15 lines
/Users/deadhorse/git/callback_hell/series/step.js has 27 lines
```

* [nested](https://github.com/dead-horse/callback_hell/blob/master/count_lines/callback.js)
* [async](https://github.com/dead-horse/callback_hell/blob/master/count_lines/async.js)
* [eventproxy](https://github.com/dead-horse/callback_hell/blob/master/count_lines/eventproxy.js)
* [generator && co](https://github.com/dead-horse/callback_hell/blob/master/count_lines/generator.js)
* [q](https://github.com/dead-horse/callback_hell/blob/master/count_lines/q.js)
* [step](https://github.com/dead-horse/callback_hell/blob/master/count_lines/step.js)

### Resource

* [Mixu's Node book--Contro flow](http://book.mixu.net/node/ch7.html)
* [Selecting a javascript flow control solution](https://github.com/scriby/asyncblock/wiki/Selecting-a-javascript-flow-control-solution)
* [Dailyjs -- New Control Flow Libraries](http://dailyjs.com/2012/02/20/new-flow-control-libraries/)
* [Asynchronous JS: Callbacks, Listeners, Control Flow Libs and Promises](http://sporto.github.io/blog/2012/12/09/callbacks-listeners-promises/)
* [Managing Node.js Callback Hell with Promises, Generators and Other Approaches](http://strongloop.com/strongblog/node-js-callback-hell-promises-generators/)

## More

**pull request** are welcome!
**help me to show more examples and more solutions!**

## License
MIT