
Security News
Happy Birthday, Shai-Hulud
It has been one year since Shai-Hulud made its first appearance on npm.
@fxts/core
Advanced tools
FxTS is a functional programming library for TypeScript.
| FxTS | lodash | Native (Array + Iterator Helpers) | |
|---|---|---|---|
| Lazy evaluation | ✅ | 🔶 _.chain only | ✅ ES2025 |
| AsyncIterable pipelines | ✅ | ❌ | ❌ (proposal stage) |
| Concurrency control with backpressure | ✅ concurrentPool | ❌ | ❌ |
Curried, data-last composition (pipe) | ✅ | 🔶 lodash/fp | ❌ |
Early termination across async work (take) | ✅ | ❌ | 🔶 sync only |
Literal-preserving inference (Record<"a"…>) | ✅ | ❌ | — |
Deep utils (isEqual, cloneDeep, merge) | ✅ | ✅ | ❌ |
Migrating from p-limit/p-map? See the migration guide.
npm install @fxts/core
Use pipe for function composition or fx for method chaining:
import { each, filter, fx, map, pipe, range, take } from "@fxts/core";
pipe(
range(10),
map((a) => a + 10),
filter((a) => a % 2 === 0),
take(2),
each((a) => console.log(a)),
);
// chaining
fx(range(10))
.map((a) => a + 10)
.filter((a) => a % 2 === 0)
.take(2)
.each((a) => console.log(a));
Handle multiple async operations in parallel with concurrent:
import { concurrent, countBy, flat, fx, map, pipe, toAsync } from "@fxts/core";
// maybe 1 seconds api
const fetchWiki = (page: string) =>
fetch(`https://en.wikipedia.org/w/api.php?action=parse&page=${page}`);
const countWords = async (concurrency: number) =>
pipe(
["html", "css", "javascript", "typescript"],
toAsync,
map(fetchWiki),
map((res) => res.text()),
map((words) => words.split(" ")),
flat,
concurrent(concurrency),
countBy((word) => word),
);
await countWords(); // 4 seconds
await countWords(2); // 2 seconds
For more information, visit fxts.dev.
For LLM-friendly documentation, see llms.txt.
We welcome contributions from everyone in the community. Please read our Contributing Guide.
FAQs
A functional library for TypeScript/JavaScript programmers.
The npm package @fxts/core receives a total of 26,631 weekly downloads. As such, @fxts/core popularity was classified as popular.
We found that @fxts/core demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.

Security News
It has been one year since Shai-Hulud made its first appearance on npm.

Research
/Security News
Operators behind PolinRider used a compromised GitHub account to plant malware in four development versions of a Packagist package with 700,000+ downloads.

Security News
GitHub Actions now supports cache-mode, a least-privilege control on the Actions cache aimed at the cache poisoning technique behind recent compromises.