JSPutty, the UNIX-like piping method for Javascript

JSPutty is a way to manipulate and transform your data in a way that is readable, stylish, and familiar.

Instructions

var putty = require ( ' putty ' ) ; var originalString = " Hi " ; var addPeriodToString = function ( string ) { return string + " . " ; } var getStringLength = funtion ( string ) { return string . length ; } console . log ( putty . pipe ( originalString , addPeriodToString , getStringLength ) ) ;

Some things to note

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!