1.0.0 • Published 7 years ago

pipe-js v1.0.0

Weekly downloads
9
License
MIT
Repository
github
Last release
7 years ago

pipe-js

Travis build Codecov coverage Version Downloads MIT license

A backwards-compatible way of streamlining chained function calls in a readable and functional manner

Usage

const pipe = require('pipe-js')

const hello = 'hello'

const capitalize = str => str[0].toUpperCase() + str.substring(1)
const duplicate = str => `${str}-${str}`
const exclaim = str => str + '!'

pipe(hello).through(duplicate, capitalize, [String.prototype.concat, ' world'], exclaim) // Hello-hello world!
1.0.0

7 years ago

0.2.0

7 years ago

0.0.0

7 years ago

0.1.0

7 years ago

0.1.0-beta.0

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago