Global

Methods

# hexToDec(hexStr) → {string|null}

Converts hex to decimal

Parameters:
Name Type Description
hexStr string

Hex string to convert

View Source lib/hex2dec.ts, line 107

string | null

# removeUndefined(obj) → {any}

Removes undefined values from an object

Parameters:
Name Type Description
obj any

View Source classes/config.ts, line 9

any

# stream2buffer(stream, preallocopt) → {Promise.<Buffer>}

Converts a stream to a buffer

Parameters:
Name Type Attributes Description
stream Readable

The stream to convert

prealloc number <optional>

The size to preallocate for the buffer

View Source lib/s3.ts, line 18

Promise.<Buffer>

# validateCaptcha(token) → {Promise.<{success: boolean, error: ?string}>}

Validates captcha code

Parameters:
Name Type Description
token string

View Source classes/captcha.ts, line 8

Promise.<{success: boolean, error: ?string}>