Files
tools/core/stdlib
Renovate Bot 63b3c5f2fd
CI / Discover packages (pull_request) Failing after 53s
CI / ${{ matrix.package }} (pull_request) Has been skipped
CI / CI (pull_request) Failing after 5s
chore(deps): update pnpm to v11
2026-06-15 22:06:55 +00:00
..
2026-06-15 22:06:55 +00:00

@robonen/stdlib

Standard library of platform-independent utilities for TypeScript.

Install

pnpm install @robonen/stdlib

Modules

Module Utilities
arrays cluster, first, groupBy, last, partition, range, sum, toArray, unique, zip
async pool, retry, sleep, tryIt
bits flagsGenerator, and, or, not, has, is, unset, toggle, BitVector
collections get
functions compose, debounce, memoize, once, pipe, throttle
math clamp, lerp, remap + BigInt variants
objects omit, pick
patterns Command, PubSub, StateMachine
structs BinaryHeap, CircularBuffer, Deque, LinkedList, PriorityQueue, Queue, Stack
sync mutex
text levenshteinDistance, trigramDistance, templateObject
types JS & TS type utilities
utils timestamp, noop

Usage

import { first, sleep, clamp } from '@robonen/stdlib';