📄️ duration
Converts a duration in milliseconds into a human-readable string that represents the duration in terms of days, hours, minutes, seconds, and optionally milliseconds.
📄️ fetchWithTimeout
Sends a fetch request to a specified URL with a timeout. If the request does not complete within the specified timeout, it is aborted.
📄️ firstUpperCase
Converts the first character of a string to uppercase.
📄️ forMatTimeMs
Converts a duration in milliseconds into a time string in the format HHSS.
📄️ getBytes
Converts a byte value into a string that represents the byte value in the appropriate unit (e.g., KB, MB, GB, etc.).
📄️ getMemory
Estimates the memory usage of a value in bytes and returns a human-readable string representing the size.
📄️ hexToInt
Converts a hexadecimal string to an integer.
📄️ hexToRgb
Converts a hexadecimal string to RGB color.
📄️ intToHex
Converts an integer to a hexadecimal string.
📄️ isArray
Check if a value is an Array.
📄️ isBoolean
Check if a value is a boolean.
📄️ isFunction
Check if a value is a function.
📄️ isNull
Check if a value is a null.
📄️ isNumber
Check if a value is a number.
📄️ isObject
Check if a value is an Object.
📄️ isPromise
Check if a value is a Promise.
📄️ isString
Check if a value is a string.
📄️ isUndefined
Check if a value is an undefined.
📄️ isUrl
Check if a value is an url.
📄️ percentage
Calculates the percentage of a part relative to a whole.
📄️ randomInt
Generates a random integer within a specified range.
📄️ randomKey
Generates a random string of a specified length using alphanumeric characters.
📄️ readFiles
Reads all files in a directory and its subdirectories synchronously. Optionally, it can filter files by their extensions.
📄️ shuffle
Shuffles the elements of an array in place.
📄️ wait
Pauses the execution of an asynchronous function for a specified duration.