{"id":13624389,"url":"https://github.com/dead-horse/callback_hell","last_synced_at":"2025-04-15T07:31:01.153Z","repository":{"id":14594581,"uuid":"17311458","full_name":"dead-horse/callback_hell","owner":"dead-horse","description":"examples for handling callback hell","archived":false,"fork":false,"pushed_at":"2018-10-12T18:20:02.000Z","size":203,"stargazers_count":65,"open_issues_count":4,"forks_count":7,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-28T18:14:57.952Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dead-horse.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-03-01T08:57:58.000Z","updated_at":"2023-03-15T04:08:54.000Z","dependencies_parsed_at":"2022-08-26T22:12:31.800Z","dependency_job_id":null,"html_url":"https://github.com/dead-horse/callback_hell","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dead-horse%2Fcallback_hell","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dead-horse%2Fcallback_hell/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dead-horse%2Fcallback_hell/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dead-horse%2Fcallback_hell/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dead-horse","download_url":"https://codeload.github.com/dead-horse/callback_hell/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249026707,"owners_count":21200494,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T21:01:41.996Z","updated_at":"2025-04-15T07:31:00.867Z","avatar_url":"https://github.com/dead-horse.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"callback_hell\n=============\n\nExamples for callback hell\n\n## Modules\n\n* [async](https://github.com/caolan/async)\n* [eventproxy](https://github.com/JacksonTian/eventproxy)\n* [generator \u0026\u0026 co](https://github.com/visionmedia/co)\n* [q](https://github.com/kriskowal/q)\n* [step](https://github.com/creationix/step)\n* [Wind.js](http://windjs.org/cn/)\n* [Sep](https://github.com/substack/node-seq)\n\n## Examples\n\n### Series\n\n* [nested](https://github.com/dead-horse/callback_hell/blob/master/series/callback.js)\n* [async](https://github.com/dead-horse/callback_hell/blob/master/series/async.js)\n* [eventproxy](https://github.com/dead-horse/callback_hell/blob/master/series/eventproxy.js)\n* [generator \u0026\u0026 co](https://github.com/dead-horse/callback_hell/blob/master/series/generator.js)\n* [q](https://github.com/dead-horse/callback_hell/blob/master/series/q.js)\n* [step](https://github.com/dead-horse/callback_hell/blob/master/series/step.js)\n\n### parallel\n\n* [nested](https://github.com/dead-horse/callback_hell/blob/master/parallel/callback.js)\n* [async](https://github.com/dead-horse/callback_hell/blob/master/parallel/async.js)\n* [eventproxy](https://github.com/dead-horse/callback_hell/blob/master/parallel/eventproxy.js)\n* [generator \u0026\u0026 co](https://github.com/dead-horse/callback_hell/blob/master/parallel/generator.js)\n* [q](https://github.com/dead-horse/callback_hell/blob/master/parallel/q.js)\n* [step](https://github.com/dead-horse/callback_hell/blob/master/parallel/step.js)\n\n### Limitedly parallel\n\n* [async](https://github.com/dead-horse/callback_hell/blob/master/limited_parallel/async.js)\n* [generator](https://github.com/dead-horse/callback_hell/blob/master/limited_parallel/generator.js)\n* [eventproxy](https://github.com/dead-horse/callback_hell/blob/master/limited_parallel/eventproxy.js)\n\n\n### count_lines\n\ncount all js files' total line in giving folder.\n\n```\n$ node count_lines/async.js .\n/Users/deadhorse/git/callback_hell/parallel/async.js has 36 lines\n/Users/deadhorse/git/callback_hell/parallel/callback.js has 33 lines\n/Users/deadhorse/git/callback_hell/parallel/eventproxy.js has 30 lines\n/Users/deadhorse/git/callback_hell/parallel/generator.js has 21 lines\n/Users/deadhorse/git/callback_hell/parallel/proxy.js has 19 lines\n/Users/deadhorse/git/callback_hell/parallel/q.js has 31 lines\n/Users/deadhorse/git/callback_hell/parallel/step.js has 34 lines\n/Users/deadhorse/git/callback_hell/count_lines/async.js has 54 lines\n/Users/deadhorse/git/callback_hell/count_lines/callback.js has 39 lines\n/Users/deadhorse/git/callback_hell/count_lines/eventproxy.js has 52 lines\n/Users/deadhorse/git/callback_hell/count_lines/generator.js has 34 lines\n/Users/deadhorse/git/callback_hell/count_lines/q.js has 55 lines\n/Users/deadhorse/git/callback_hell/count_lines/step.js has 72 lines\n/Users/deadhorse/git/callback_hell/count_lines/utils.js has 15 lines\n/Users/deadhorse/git/callback_hell/series/async.js has 19 lines\n/Users/deadhorse/git/callback_hell/series/callback.js has 24 lines\n/Users/deadhorse/git/callback_hell/series/eventproxy.js has 23 lines\n/Users/deadhorse/git/callback_hell/series/generator.js has 22 lines\n/Users/deadhorse/git/callback_hell/series/proxy.js has 22 lines\n/Users/deadhorse/git/callback_hell/series/q.js has 15 lines\n/Users/deadhorse/git/callback_hell/series/step.js has 27 lines\n```\n\n* [nested](https://github.com/dead-horse/callback_hell/blob/master/count_lines/callback.js)\n* [async](https://github.com/dead-horse/callback_hell/blob/master/count_lines/async.js)\n* [eventproxy](https://github.com/dead-horse/callback_hell/blob/master/count_lines/eventproxy.js)\n* [generator \u0026\u0026 co](https://github.com/dead-horse/callback_hell/blob/master/count_lines/generator.js)\n* [q](https://github.com/dead-horse/callback_hell/blob/master/count_lines/q.js)\n* [step](https://github.com/dead-horse/callback_hell/blob/master/count_lines/step.js)\n\n\n\n### Resource\n\n* [Mixu's Node book--Contro flow](http://book.mixu.net/node/ch7.html)\n* [Selecting a javascript flow control solution](https://github.com/scriby/asyncblock/wiki/Selecting-a-javascript-flow-control-solution)\n* [Dailyjs -- New Control Flow Libraries](http://dailyjs.com/2012/02/20/new-flow-control-libraries/)\n* [Asynchronous JS: Callbacks, Listeners, Control Flow Libs and Promises](http://sporto.github.io/blog/2012/12/09/callbacks-listeners-promises/)\n* [Managing Node.js Callback Hell with Promises, Generators and Other Approaches](http://strongloop.com/strongblog/node-js-callback-hell-promises-generators/)\n\n## More\n\n**pull request** are welcome!\n**help me to show more examples and more solutions!**\n\n## License\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdead-horse%2Fcallback_hell","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdead-horse%2Fcallback_hell","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdead-horse%2Fcallback_hell/lists"}