Skip to content
This repository has been archived by the owner on Jun 19, 2019. It is now read-only.
/ waterfall-ya Public archive
forked from dakk/waterfall-ya

Yet another waterfall library for nodejs

License

Notifications You must be signed in to change notification settings

helperbit/waterfall-ya

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Yet Another Waterfall library for node

waterfall-ya implements a waterfall utility to avoid callback hell. It doesn't require any external dependencies.

Install

npm install waterfall-ya

Usage

	var waterfall = require ('waterfall-ya');
	
	waterfall ([
		function (next) {
			someAsyncTask (a, b, next);
		},
		function (err, data, next) {
			// data contains someAsyncTask result
			someOtherAsyncTask (data, next);		
		},
		function (err, data, next) {
			// data contains someOtherAsyncTask result
			someOtherAsyncTask2 (data, next);		
		},
		function (err, data) {
			console.log ('All done.', data);
		}
	]);

About

Yet another waterfall library for nodejs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%