Skip to content

Installation

npm add @nlozgachev/pipekit

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

import { Option, Result, Task } from "@nlozgachev/pipekit/Core";
import { pipe, flow }           from "@nlozgachev/pipekit/Composition";
import { Brand }                from "@nlozgachev/pipekit/Types";
Entry pointContains
@nlozgachev/pipekit/CoreOption, Result, Validation, Task, TaskResult, TaskOption, TaskValidation, These, RemoteData, Arr, Rec
@nlozgachev/pipekit/Compositionpipe, flow, compose, curry, tap, memoize, and other function utilities
@nlozgachev/pipekit/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.