Skip to content
/ ts-pipe Public

Being able to pipe data through functions or compose a piped function.

License

Notifications You must be signed in to change notification settings

Blu-J/ts-pipe

Repository files navigation

ts-pipe

Node.js CI Bundle Phobia Bundle Phobia 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

About

Being able to pipe data through functions or compose a piped function.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •