ts-pipe
v1.2.3
Published
Simple typescript pipe syntax
Downloads
109
Readme
ts-pipe
Being able to pipe data through functions or compose a piped function.
Examples
import { pipeable, lazyPipeable } from "ts-pipe";
pipeable("20")
.pipe((x) => Number(x))
.pipe((x) => x + 5).value; // 25
const lazyPiped = lazyPipeable((x) => Number(x)).pipe((x) => x + 5);
lazyPiped.call("14"); // 19