Skip to content

groucho-fp

Typed, functional pipelines for TypeScript, built on @ngwes/mini-fp.

It provides two things:

  • Pipeline runs a list of steps over a shared context. Each step returns an Either. When a step fails, throws or overwrites a value, a hook decides whether the pipeline recovers and continues, or stops.
  • loadSteps / loadStepsFromDir import step files at runtime (TypeScript included, no build step), so a pipeline can be assembled from the filesystem. Files that cannot be loaded come back as typed errors, not exceptions.