Skip to content

Installation

pnpm add @nlozgachev/pipelined

The library is split into four entry points. Import only what you need:

import { Maybe, Result, Task } from "@nlozgachev/pipelined/core";
import { Arr, Str } from "@nlozgachev/pipelined/utils";
import { pipe, flow } from "@nlozgachev/pipelined/composition";
import { Brand } from "@nlozgachev/pipelined/types";
Entry pointContains
@nlozgachev/pipelined/coreMaybe, Result, Validation, Task, TaskResult, TaskMaybe, TaskValidation, These, Tuple, RemoteData, Deferred, Lens, Optional, Reader, State, Logged, Predicate, Refinement
@nlozgachev/pipelined/utilsArr, Rec, Num, Str, Dict, Uniq
@nlozgachev/pipelined/compositionpipe, flow, compose, curry, tap, memoize, and other function utilities
@nlozgachev/pipelined/typesBrand, NonEmptyList
  • Node.js 22 or later (for npm/pnpm/yarn/bun installs)
  • TypeScript 5.4 or later with strict mode enabled

Strict mode is required for the type-level guarantees — particularly exhaustiveness checking in match branches and narrowing in type guards — to work correctly.