Installation
Package managers
Section titled “Package managers”Imports
Section titled “Imports”The library is split into four entry points. Import only what you need:
| Entry point | Contains |
|---|---|
@nlozgachev/pipelined/core | Maybe, Result, Validation, Task, TaskResult, TaskMaybe, TaskValidation, These, Tuple, RemoteData, Deferred, Lens, Optional, Reader, State, Logged, Predicate, Refinement, Resource, Equality, Ordering, Lazy, Combinable, Op |
@nlozgachev/pipelined/data | Arr, Rec, Num, Str, Dict, Uniq |
@nlozgachev/pipelined/composition | pipe, flow, compose, curry, uncurry, flip, tap, memoize, fn, not, on, converge, juxt |
@nlozgachev/pipelined/types | Brand, Duration, NonEmptyList |
Requirements
Section titled “Requirements”- Node.js 22 or later (for npm/pnpm/yarn/bun installs)
- TypeScript 5.5 or later with
strictmode enabled
TypeScript 5.5 or later is required because the library leverages standard ECMAScript Set composition methods (such as .union(), .intersection(), and .isSubsetOf()) which were introduced into TypeScript’s standard library in version 5.5.
Strict mode is required for the type-level guarantees — particularly exhaustiveness checking in match branches and narrowing in type guards — to work correctly.