Copyright © 2026 Gage Sorrell. Released under the MIT license.
The pipe operator, implemented via tsover.
The documentation is available here, a subdomain of the author's personal website.
| Package | Version |
|---|---|
| NodeJS | >=24.15.0 |
tsover |
>=6.0.0 |
Your project must also be set up to work with tsover.
Their setup guide is available here.
Once the requirements are met, just install,
npm install @sorrell/pipe-operator"use tsover";
import { Pipe as P } from "@sorrell/pipe-operator";
const Value: number = 40;
const Product = (...Values: Array<number>): number =>
Values.reduce((Prev, Curr) => Prev * Curr, 1);
const FormatDollar = (In: number): string => `$${ In }`;
const Price = Value
% P(Product, 3, 2)
% P(FormatDollar);
// `Price` <- `"$240"`| Package | Description |
|---|---|
@sorrell/functional |
Other utilities for functional programming. |
@sorrell/utilities |
General-purpose utilities. |
@sorrell/cli-utilities |
Utilities for CLI applications. |
@sorrell/cli |
CLI to assist with TypeScript development. |