od-utility
v1.4.3
Published
OD International Express project utility function package
Downloads
11
Readme
od-utility
OD International Express project utility function package
List of included utility functions:
- throwError(msg)
- throwErrorWithMissingParam(param)
- configResponseWithMessage(msg)
- configOneHourLaterTime()
- verifyUTCTime(aTime)
- configSuccess(payload, msg)
- configFail(msg)
- getMagicNum()
- seeFirstArrayIncludeSecond(arrFirst, arrSecond)
- checkKeysExist(keys, pack)
- doesArrayContainsSubarray(superset, subset)
- generateNonce(length = 32)
- generateUniqueTimedToken(length)
- generateUniqueTimedFilename(id)
- encodeUnify(pk, salt)
- encodeStatic(org, salt)
- checkIllegalKey(keys, pack)
- checkMissing(obj)
- checkMissingParam(pack, requiredField)