Skip to content

API Reference — @litert/utils

Overview

@litert/utils is a collection of utility libraries for JavaScript/TypeScript, organized as individual packages. Each package focuses on a specific concern and can be installed independently. All packages are available under the @litert/ scope.

Namespaces

NamespacePackageDescription
Array@litert/utils-arrayArray utility functions: deduplication, chunking, and dictionary transformation.
Async@litert/utils-asyncAsynchronous utilities: sleep, timeout, abort-signal binding, auto-retry, and promise/fiber management.
Concurrent@litert/concurrentConcurrency primitives: rate limiters, circuit breakers, debounce/throttle controllers, mutexes, and fiber pools.
flow-control@litert/utils-flow-controlFlow-control helpers: expression-style try-catch and conditional value selection.
Network@litert/utils-networkNetwork validation and parsing: IPv4, IPv6, and MAC address utilities.
Number@litert/utils-numberNumber utilities: unit conversion and random number generation.
Object@litert/utils-objectObject utilities: deep merge, property copy/pick, constructor reflection, and subclass checking.
String@litert/utils-stringString utilities: case conversion, line handling, HTML escaping, random generation, email validation, and unit parsing.
Test@litert/utils-testTest helpers for Node.js built-in test runner: automatic mock-timer advancement.
ts-types@litert/utils-ts-typesStatic TypeScript utility types for use in generic constraints and type-level programming.