take-pipe
v0.1.0
Published
Pipeline utility (until the pipeline operator is ready)
Downloads
31
Readme
#take-pipe (Typed) Pipeline utility (until the pipeline operator is ready)
Install
yarn add take-pipe
Use it
import { take } from 'take-pipe'
const output = take(1)
.pipe(n => n * 2)
.pipe(n => `I have ${n} cats`)
.get()