Skip to main content

A collection of tools and utilities for Node.js and TypeScript.

This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score
100%
Published
3 months ago (1.0.2)
f
clone

Creates a deep copy of the given object.If the browser doesn't support structuredClone, it will fallback to JSON.parse(JSON.stringify())

T
NodeElement

Generic type for html elements

T
Null

Generic type of null

T
Nullable

Generic type for nullable values

T
Nullish

Generic type for nullable values

T
Num
No documentation available
f
omitNullables

Omit all nullable values from an object recursively.

f
omitShallowProps

Returns a new object with all the properties of the input object removed that are specified in the keys parameter.

f
parseNumberToStringBytes

Parse a number to a string representing bytes, kilobytes, megabytes, gigabytes, or terabytes based on the input number.

f
parseStringBytesToNumber

Parse string bytes to number1kb = 1024 bytes1mb = 1048576 bytes1gb = 1073741824 bytes1tb = 1099511627776 bytes

f
parseStringToAutoDetectValue

If detect string is number or boolean, parse it to number or boolean

T
PartialDeep

Make all properties in T optional (deep)

f
promiseDelay

Creates a promise that resolves after a specified time delay.

T
ReadonlyDeep

Make all properties in T readonly (deep)

T
RequiredDeep

Make all properties in T required (deep)

T
StringInjection

Accepts generic strings and known string keys and injects values

f
tryCatchCallback

Executes the 'run' function within a try-catch block and calls 'cbErr' if an error occurs.

f
unionSerialFunctions

Executes an array of functions serially.

T
Unstring

Accepts generic strings and known string keys

T
ValuesOf

Union of values of an array