1.0.7 • Published 4 years ago

node-utils-extend v1.0.7

Weekly downloads
2
License
ISC
Repository
github
Last release
4 years ago

Functions

randomElement(arr) ⇒ T

Kind: global function

ParamType
arrArray.<T>

randomFloat(min, max) ⇒ Number

Kind: global function

ParamType
minNumber
maxNumber

randomInt(min, max) ⇒ Number

Kind: global function

ParamType
minNumber
maxNumber

capitalize(str) ⇒ String

Kind: global function

ParamType
strString

promiseAny(promises) ⇒ Promise.<T>

Rejects if all failise to complete

Kind: global function

ParamType
promisesPromise.<T>

arrayChunk(array, size) ⇒ Array.<Array.<T>>

Break array into chunks of x size

Kind: global function

ParamType
arrayArray.<T>
sizeNumber

httpsGetCB(url, path, headers, callback, encode)

Kind: global function

ParamTypeDefault
urlString
pathString
headershttp.OutgoingHttpHeaders
callbackfunction
encodeBooleantrue

httpsGet(url, path, headers, encode) ⇒ Promise.<Object>

A Promise based https get

Kind: global function

ParamTypeDefault
urlString
pathString
headershttp.OutgoingHttpHeaders
encodeBooleantrue

httpGetCB(url, path, headers, callback, encode)

Kind: global function

ParamTypeDefault
urlString
pathString
headershttp.OutgoingHttpHeaders
callbackfunction
encodeBooleantrue

httpGet(url, path, headers, encode) ⇒ Promise.<Object>

A Promise based http get

Kind: global function

ParamTypeDefault
urlString
pathString
headershttp.OutgoingHttpHeaders
encodeBooleantrue
1.0.7

4 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago