Miscellaneous Utilities
General-purpose utilities for common programming tasks, including JSON parsing, prototyping, debouncing, throttling, country phone lookups, and console styling.
Overview
A collection of general-purpose utilities. These include tools for action debouncing/throttling, safe JSON stringifying/parsing, prototype extension, country phone lookup, class method inspection, HTTP status helpers, and console log styling.
Categories
Action Utilities
- debounceAction — Delays function execution until after a specified wait time has elapsed.
- throttleAction — Limits the rate at which a function is executed.
Data & JSON Utilities
- convertArrayToString — Converts array values to readable strings with customization.
- deepParsePrimitives — Recursively parses all string values in an object to their actual types.
- jsonStringify — Stable, sorted, and circular-safe JSON stringifier.
- parseJSON — Safe JSON parser that never throws and optionally parses primitives.
Class & Prototype Utilities
- classMethods — Introspects class names, instance methods, and static methods.
- definePrototypeMethod — Safe utility to extend JavaScript prototypes.
Specialized Singletons
- getCountryByPhone — Identifies country and formats phone numbers by dial code.
- httpStatus — A singleton instance of
HttpStatusproviding status code checks and text lookup. - stylog — A singleton instance of
LogStylerto format console logs with styles. - stylogUtils — Supporting utilities for console logging.
Continue reading for detailed API documentation or search for functions using ctrl+k.
Last updated: Sun, Jun 14, 2026 08:22:19PM (UTC)
