LRU cache optimized for performance and low memory usage. 2x-4x times faster on get() than quick-lru
without memory overhead and 6 times smaller than
lru-cache. Less than 1Kb.
Speeds up Intl operations up to 50x. LRU-based memoizer for Intl.NumberFormat,Intl.DateFormat and other Intl constructors. Less than 1kb.
Fast and lightweight utility functions to check if a value is a plain object.
HTTP status errors with default message, instanceof, stack and nested error cause support. Lightweight, typical usage between 500b and 1300b. Includes convenience typeguards, optional contextual info and a built-in serializer to cover cross-environments challenges (RSC, SSR...).
DSN & JDBC string parser with query params support in a light and modern package.
One of the fastest md5 hash function optimized for small strings (<8Kb). Less than 1.2Kb in browser usage. Automatically uses the native crypto module on node, bun for the best performance.
Fast and lightweight utilities to work with trees.
Lightweight assertions and typeguards starting at ~60b.
Create keys or hashes from javascript values, useful for memoization or cache key generation.
String and Uint8Array compression utilities (gzip)
Base encoding
Contributions are welcome. Take a look to the CONTRIBUTING docs or skip and try
# make a fork and clone it, then
yarn install
yarn g:test-unit
yarn g:lint
yarn g:typecheckDon't hesitate and open an issue.
If my OSS work brightens your day, let's take it to new heights together! Sponsor, coffee, or star – any gesture of support fuels my passion to improve. Thanks for being awesome! 🙏❤️
|
|
| JetBrains | Embie.be |
MIT © belgattitude and contributors.