ramped.pipe

0.2.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i ramped.pipe

Weekly Downloads

0

Version

0.2.0

License

ISC

Last publish

Collaborators

  • mattms