JSPutty is a way to manipulate and transform your data in a way that is readable, stylish, and familiar.
var putty = require('putty');
var originalString = "Hi";
var addPeriodToString = function(string){
return string + ".";
}
var getStringLength = function(string){
return string.length;
}
console.log(putty.pipe(originalString, addPeriodToString, getStringLength)); // 3
JSPutty checks that everything returned from each function equals the number of arguments expected by the next function. If there is a difference in these numbers, you will get an error.
I accept all help and contributions to the package. If you've found a bug, please submit it. Even better, see if you can fix it!