0.7.2 • Published 8 years ago

waterfall-ya v0.7.2

Weekly downloads
2
License
BSD-3-Clause
Repository
github
Last release
8 years ago

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);
		}
	]);
0.7.2

8 years ago

0.7.1

8 years ago

0.7.0

8 years ago