1.0.0 • Published 8 years ago

jsputty v1.0.0

Weekly downloads
1
License
ISC
Repository
github
Last release
8 years ago

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)); // 3

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!