jsputty

1.0.0 • Public • Published

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!

Readme

Keywords

Package Sidebar

Install

npm i jsputty

Weekly Downloads

0

Version

1.0.0

License

ISC

Last publish

Collaborators

  • danielbalagula