1.0.0 • Published 2 years ago
just-pipe v1.0.0
just-pipe
Part of a library of zero-dependency npm modules that do just do one thing. Guilt-free utilities for every occasion.
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'
1.0.0
2 years ago