Skip to content

Installation

npm add @nlozgachev/pipelined

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

import { Option, Result, Task } from "@nlozgachev/pipelined/core";
import { pipe, flow } from "@nlozgachev/pipelined/composition";
import { Brand } from "@nlozgachev/pipelined/types";
Entry pointContains
@nlozgachev/pipelined/coreOption, Result, Validation, Task, TaskResult, TaskOption, TaskValidation, These, RemoteData, Lens, Optional, Reader, Arr, Rec
@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)
  • Deno 2 or later
  • 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.