Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/node-modules/utility
/ functions
Functions
79 in github.com/node-modules/utility
⨍
Functions
79
◇
Types & classes
8
↓ 24 callers
Function
spliceOne
(array, index)
benchmark/array_splice.cjs:14
↓ 20 callers
Function
md5
(s: HashInput, format?: BinaryToTextEncoding)
src/crypto.ts:46
↓ 9 callers
Function
randomSlice
(arr: T[], num?: number)
src/array.ts:4
↓ 7 callers
Function
arraySplice
(array, index)
benchmark/array_splice.cjs:9
↓ 7 callers
Method
spliceOne
(index)
benchmark/array_splice.cjs:23
↓ 5 callers
Function
getDateStringParts
(d?: Date, onlyDate?: boolean)
src/date.ts:37
↓ 4 callers
Function
encodeURIComponent
(text: string)
src/web.ts:32
↓ 4 callers
Function
exists
(file: string)
src/fs.ts:8
↓ 4 callers
Function
hash
(method: string, s: HashInput, format?: BinaryToTextEncoding)
src/crypto.ts:18
↓ 4 callers
Function
pseudoRandomString
(length)
benchmark/random_string.cjs:9
↓ 4 callers
Function
randomString
(length)
benchmark/random_string.cjs:5
↓ 4 callers
Function
sleep
(ms: number)
test/timeout.test.ts:5
↓ 3 callers
Function
decodeURIComponent
(encodeText: string)
src/web.ts:47
↓ 3 callers
Function
getArguments
(...args: any[])
test/optimize.test.ts:79
↓ 3 callers
Function
strictJSONParse
(content: string)
src/json.ts:5
↓ 2 callers
Function
YYYYMMDDHHmmss
(d?: Date | string | number, options?: YYYYMMDDHHmmssOptions)
src/date.ts:112
↓ 2 callers
Function
argumentsToArray
()
benchmark/arguments_to_array.cjs:16
↓ 2 callers
Function
arrayFrom
()
benchmark/arguments_to_array.cjs:20
↓ 2 callers
Function
createHashWithMD5
(s)
benchmark/md5.cjs:8
↓ 2 callers
Function
createHashWithSHA512
(s)
benchmark/sha512.cjs:8
↓ 2 callers
Function
fasterAccessDate
()
benchmark/date_format.cjs:10
↓ 2 callers
Function
fasterAccessDate2
()
benchmark/date_format.cjs:19
↓ 2 callers
Function
logDate
(d?: Date | string | null, msSep?: string)
src/date.ts:81
↓ 2 callers
Function
map0
(obj)
benchmark/map.cjs:7
↓ 2 callers
Function
map1
(obj)
benchmark/map.cjs:19
↓ 2 callers
Function
map3
(obj)
benchmark/map.cjs:46
↓ 2 callers
Function
promiseTimeout
( promiseArg: Promise<T>, timeout: number, )
src/timeout.ts:13
↓ 2 callers
Function
prototypeSlice
()
benchmark/arguments_to_array.cjs:8
↓ 2 callers
Function
random256
(upper)
benchmark/random_integer.cjs:9
↓ 2 callers
Function
random65536
(upper)
benchmark/random_integer.cjs:13
↓ 2 callers
Function
runWithTimeout
( scope: () => Promise<T>, timeout: number, )
src/timeout.ts:31
↓ 2 callers
Function
slice
()
benchmark/arguments_to_array.cjs:12
↓ 1 callers
Function
YYYYMMDD
(d?: Date | string, sep?: string)
src/date.ts:133
↓ 1 callers
Function
accessLogDate
(d?: Date)
src/date.ts:58
↓ 1 callers
Function
dateToUnixTimestamp
(date: Date)
src/date.ts:201
↓ 1 callers
Function
escape
(html: string)
src/web.ts:13
↓ 1 callers
Function
getParamNames
(func: (...args: any[]) => any, cache?: boolean)
src/function.ts:18
↓ 1 callers
Function
getTimezone
(d: Date)
src/date.ts:66
↓ 1 callers
Function
has
(obj: object, prop: string)
src/object.ts:25
↓ 1 callers
Function
isSafeNumberString
(s: string)
src/number.ts:13
↓ 1 callers
Function
map2
(obj)
benchmark/map.cjs:31
↓ 1 callers
Function
resetTimezone
(date: Date)
src/date.ts:4
↓ 1 callers
Function
sortObject
(o: any)
src/crypto.ts:149
↓ 1 callers
Function
timestamp
(t?: number | string)
src/date.ts:172
↓ 1 callers
Function
toSafeNumber
(s: string | number)
src/number.ts:30
Function
EmptyObject
()
src/object.ts:53
Function
Store
()
benchmark/map.cjs:43
Function
argumentsToArray
(args: any[])
src/optimize.ts:56
Function
assign
(target: any, objects: any | any[])
src/object.ts:7
Function
base64decode
(encodeStr: string, urlSafe?: boolean, encoding?: BufferEncoding | 'buffer')
src/crypto.ts:138
Function
base64encode
(s: string | Buffer, urlSafe?: boolean)
src/crypto.ts:118
Method
constructor
(timeout: number)
src/timeout.ts:4
Function
datestruct
(now?: Date)
src/date.ts:161
Function
dig
(obj?: any, ...keys: string[])
src/optimize.ts:34
Function
foo
(cid, startDate, endDate, rate, callback)
benchmark/get_paramnames.cjs:7
Function
getDateFromMilliseconds
(milliseconds: number, format?: DateFormat)
src/date.ts:215
Function
getOwnEnumerables
(obj: any, ignoreNull?: boolean)
src/object.ts:35
Function
hmac
(algorithm: string, key: string, data: string | Buffer, encoding?: BinaryToTextEncoding)
src/crypto.ts:103
Function
includesInvalidHttpHeaderChar
(val: string)
src/string.ts:120
Function
map
(obj?: any)
src/object.ts:60
Function
newfn
(foo, bar)
benchmark/get_paramnames.cjs:40
Function
noop
(..._args: any[])
src/function.ts:7
Function
parseTimestamp
(t: number | string)
src/date.ts:194
Function
random
(lower?: number, upper?: number)
src/number.ts:45
Function
randomString
(length?: number, charSet?: string)
src/string.ts:1
Function
readJSON
(filepath: string)
src/json.ts:36
Function
readJSONSync
(filepath: string)
src/json.ts:13
Function
replace
(str: string, substr: string | RegExp, newSubstr: string | StringReplacer)
src/string.ts:37
Function
replaceInvalidHttpHeaderChar
(val: string, replacement?: string | Replacement)
src/string.ts:82
Function
sha1
(s: HashInput, format?: BinaryToTextEncoding)
src/crypto.ts:58
Function
sha256
(s: HashInput, format?: BinaryToTextEncoding)
src/crypto.ts:70
Function
sha512
(s: HashInput, format?: BinaryToTextEncoding)
src/crypto.ts:82
Function
spliceOne
(arr: T[], index: number)
src/array.ts:25
Function
split
(str?: string, sep?: string)
src/string.ts:17
Function
tryCatch
(fn: () => T)
src/optimize.ts:4
Function
unescape
(html: string, type?: string)
src/web.ts:21
Function
value
()
test/object.test.ts:21
Function
writeJSON
(filepath: string, content: string | object, options: JSONStringifyOptions = {})
src/json.ts:41
Function
writeJSONSync
(filepath: string, content: string | object, options: JSONStringifyOptions = {})
src/json.ts:27