1.0.0 • Published 1 year ago

just-pipe v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

just-pipe

Part of a library of zero-dependency npm modules that do just do one thing. Guilt-free utilities for every occasion.

🍦 Try it

npm install just-pipe
yarn add just-pipe

Pass a value through a pipeline of functions

import pipe from 'just-pipe

pipe(3, a => a+1, b => b*2) // 8
pipe('John Smith', a => a.split(' '), b => b.reverse(), c => c[0]) // 'Smith'