0.2.0 • Published 8 years ago

ramped.pipe v0.2.0

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

Ramped pipe

Connect functions into a pipeline: the output of one is the input of the next.

Install

To add as a dependency to a Node.js project:

npm i ramped.pipe --save

Usage

curry = require('ramped.curry')
pipe = require('ramped.pipe')

add = curry((b, a) => a + b)
divide = curry((b, a) => a / b)

get_value = pipe([
	divide(2),
	add(7)
])

get_value(30)
// = 22

License

ISC