@webreflection/utils
Social media photo by Benjamin Lehman on Unsplash
A curated, TypeScript-friendly collection of utilities:
- all -
Promise.allvia object destructuring - ascii - basic string-to-buffer conversion without validation
- bound-once - retrieve unique bound methods per realm
- bound - retrieve one-off bound methods
- cache - use a temporal
Mapto reuse repeated key lookups within the same tick, or for a short timed window - iterable - make plain objects iterable as
Object.entries(object)pairs, without touching objects that are already iterable - json-storage - use
localStorageorsessionStoragethrough a JSON-aware, iterable, Map-friendly API - registry - use a
Map-like API with key/value validation and duplicate-key protection by default - shared-array-buffer - simulate SAB when not available
- sticky - keep useful values stable once per realm
- with-resolvers - use a self-bound
Promise.withResolvers()helper for older runtimes
MIT-style license.