Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ThinhVu/mhvn
/ functions
Functions
290 in github.com/ThinhVu/mhvn
⨍
Functions
290
◇
Types & classes
28
Method
constructor
(errorCode: string, message?: string, statusCode?: number)
be/src/utils/common-util.ts:12
Method
constructor
(opts)
be/src/utils/logger-transport-discord.ts:8
Method
constructor
(s3Config: any)
be/src/utils/s3.ts:9
Method
constructor
* The code must be a string, in snake case and all capital, that starts with * the substring `ERR_ERL_`. * * The message must be a string, st
be/src/libs/rate-limit/validations.ts:23
Method
constructor
* @constructor for `RedisStore`. * * @param options {Options} - The configuration options for the store.
be/src/libs/rate-limit-redis/lib.ts:80
Function
copyToClipboard
(content)
fe/src/utils/common.js:1
Function
cronjob
()
be/src/plugins/cronjob.ts:9
Function
date
(v: any)
be/src/utils/data-parser.ts:36
Method
decrement
* Method to decrement a client's hit counter. * * @param key {string} - The identifier for a client. * * @public
be/src/libs/rate-limit/memory-store.ts:115
Method
decrement
* Method to decrement a client's hit counter. * * @param key {string} - The identifier for a client
be/src/libs/rate-limit-redis/lib.ts:199
Method
deleteFile
(file)
be/src/utils/s3.ts:63
Function
disable
()
be/src/libs/rate-limit/validations.ts:62
Function
docs2Map
(docs: Array<T>, getKey?: (item: T) => string)
be/src/utils/common-util.ts:93
Function
draftPolliHeaders
* Warns the user that the `draft_polli_ratelimit_headers` option is deprecated * and will be removed in the next major release. * * @param dr
be/src/libs/rate-limit/validations.ts:208
Function
enumToObject
(enumObj: any)
be/src/utils/common-util.ts:84
Function
env
()
be-playground/src/helper/utils.js:5
Method
evalCommand
()
be/src/libs/rate-limit-redis/lib.ts:124
Function
generateRandomCode
(length: number)
be/src/utils/random-util.ts:1
Function
generateUniqueUsername
(text: string)
be/src/logic/user.ts:116
Function
get
(fileId: ObjectId)
be/src/logic/file-system/file.ts:7
Method
getEtag
(file)
be/src/utils/s3.ts:53
Function
getThrowFn
()
be/src/libs/rate-limit/lib.ts:434
Function
getUserById
(fromUser, userId)
be-playground/src/helper/user.js:31
Function
getUserPublicInfo
(userInfo: IUser)
be/src/logic/user.ts:28
Function
getUserPublicInfoByIds
(ids: ObjectId[])
be/src/logic/user.ts:37
Function
h2ms
be/src/utils/date-time-util.ts:19
Function
handler
( request, response, _optionsUsed: Options, )
be/src/libs/rate-limit/lib.ts:229
Function
headersResetTime
* Warns the user when the selected headers option requires a reset time but * the store does not provide one. * * @param resetTime {Date | un
be/src/libs/rate-limit/validations.ts:242
Function
hmm
(app)
be/src/routes/hmm.app.ts:39
Function
hook
()
be/src/utils/hook.ts:4
Method
increment
* Method to increment a client's hit counter. * * @param key {string} - The identifier for a client. * * @returns {ClientRateLimitInfo} -
be/src/libs/rate-limit/memory-store.ts:96
Method
increment
* Method to increment a client's hit counter. * * @param key {string} - The identifier for a client * * @returns {IncrementResponse} - The
be/src/libs/rate-limit-redis/lib.ts:189
Method
init
* Method that initializes the store. * * @param options {Options} - The options used to setup the middleware.
be/src/libs/rate-limit/memory-store.ts:57
Function
interceptOidArrays
(array: ObjectId[], newItems: ObjectId[])
be/src/utils/common-util.ts:73
Function
ip
* Checks whether the IP address is valid, and that it does not have a port * number in it. * * See https://github.com/ThinhVu/hyper-express-r
be/src/libs/rate-limit/validations.ts:76
Function
keyGenerator
(request: Request, _response: Response)
be/src/libs/rate-limit/lib.ts:218
Function
limit
* Warns the user that the behaviour for `max: 0` / `limit: 0` is changing in the next * major release. * * @param limit {number} - The maximu
be/src/libs/rate-limit/validations.ts:191
Function
logEventFactory
(email, event)
be-playground/src/helper/utils.js:17
Function
mergeOidArrays
(array: ObjectId[], newItems: ObjectId[])
be/src/utils/common-util.ts:59
Function
mongodb
()
be/src/plugins/mongodb.ts:23
Function
ms2h
be/src/utils/date-time-util.ts:22
Function
ms2hms
(milliseconds: number)
be/src/utils/date-time-util.ts:3
Function
num
(v: any, fallbackValue: number)
be/src/utils/data-parser.ts:28
Function
obj2QryStr
(obj)
be-playground/src/helper/utils.js:54
Function
off
(event, handler)
fe/src/utils/hooks.js:13
Function
off
(event: string, handler?)
be/src/utils/hook.ts:14
Function
oid
(v: any, throwIfInvalid = true)
be/src/utils/data-parser.ts:9
Function
oidExcludes
(array: ObjectId[], excludeItems: ObjectId[])
be/src/utils/common-util.ts:47
Function
on
(event, handler)
fe/src/utils/hooks.js:4
Function
on
(event: string, handler)
be/src/utils/hook.ts:7
Function
onLimitReached
* Warns the user that the `onLimitReached` option is deprecated and will be removed in the next * major release. * * @param onLimitReached {a
be/src/libs/rate-limit/validations.ts:225
Function
openUploadFileDialog
(options, onFileOpened)
fe/src/utils/file.js:1
Function
persistentNotifyUser
(to: ObjectId[], event: string, data: INotificationData)
be/src/logic/notification/index.ts:22
Function
pipeServerLog
()
fe/src/utils/log.js:3
Function
positiveHits
* Ensures totalHits value from store is a positive integer. * * @param hits {any} - The `totalHits` returned by the store.
be/src/libs/rate-limit/validations.ts:139
Function
randomPick
(arr)
fe/src/utils/common.js:7
Function
randomPick
(arr: Array<any>)
be/src/utils/random-util.ts:32
Function
randomUserId
()
be-playground/src/helper/utils.js:58
Function
readFile
(file)
fe/src/utils/file.js:15
Function
removeCarry
(v)
fe/src/utils/common.js:5
Function
requireAdmin
(req: Request<UserProps>, res: Response, next: MiddlewareNext)
be/src/middlewares/auth.ts:19
Function
requireUser
(req: Request<UserProps>, res: Response, next: MiddlewareNext)
be/src/middlewares/auth.ts:44
Method
resetAll
()
be/src/libs/rate-limit/lib.ts:87
Method
resetKey
(key: string)
be/src/libs/rate-limit/lib.ts:82
Method
resetKey
* Method to reset a client's hit counter. * * @param key {string} - The identifier for a client. * * @public
be/src/libs/rate-limit/memory-store.ts:128
Method
resetKey
* Method to reset a client's hit counter. * * @param key {string} - The identifier for a client
be/src/libs/rate-limit-redis/lib.ts:208
Function
run
()
be/src/migrations/demo.ts:7
Function
safeCall
(fn: SafeCallHandler<T>)
be/src/utils/safe-call.ts:8
Function
searchPlaces
(query: string, options: SearchResult)
be/src/utils/tomtom-search.ts:13
Function
send
be-playground/src/helper/hmm.js:12
Function
sendOTP
(phoneNr: string, otpCode: string | number)
be/src/utils/tel.ts:4
Function
sendOTP
(phoneNr: string, otpCode: string | number)
be/src/utils/twilio.ts:1
Method
shutdown
* Method to stop the timer (if currently running) and prevent any memory * leaks. * * @public
be/src/libs/rate-limit/memory-store.ts:149
Function
singleCount
* Ensures a given key is incremented only once per request. * * @param request {Request} - The Express request object. * @param store {Store}
be/src/libs/rate-limit/validations.ts:157
Function
snapshot
()
be/src/logic/metric/app-metric.ts:11
Function
socketConnect
(access_token)
fe/src/socket/socket.js:6
Function
stepper
()
be-playground/src/helper/utils.js:62
Function
str
(v: any)
be/src/utils/data-parser.ts:38
Function
trigger
(event, ...data)
fe/src/utils/hooks.js:23
Function
trigger
(event: string, ...data)
be/src/utils/hook.ts:22
Function
trustProxy
* Makes sure the trust proxy setting is not set to `true`. * * See https://github.com/ThinhVu/hyper-express-rate-limit/wiki/Error-Codes#err_erl_
be/src/libs/rate-limit/validations.ts:101
Function
unpipeServerLog
()
fe/src/utils/log.js:8
Function
updateUserProfile
(user, profile)
be-playground/src/helper/user.js:35
Function
uploadFiles
(files, {onSuccess, onError})
fe/src/components/FileUpload/fs-util.js:9
Function
urlFulfill
(url: string)
be/src/utils/common-util.ts:102
Function
useAppMetric
(parentRouter: Router)
be/src/routes/app-metric.route.ts:8
Function
usePlugin
(app: any)
be/src/plugins/index.ts:6
Function
validationsConfig
* Checks the options.validate setting to ensure that only recognized validations are enabled or disabled. * * If any unrecognized values are fou
be/src/libs/rate-limit/validations.ts:256
Function
volatileNotifyUser
(to: ObjectId[], event: string, data: INotificationData)
be/src/logic/notification/index.ts:28
Function
xForwardedForHeader
* Makes sure the trust proxy setting is set in case the `X-Forwarded-For` * header is present. * * See https://github.com/ThinhVu/hyper-expre
be/src/libs/rate-limit/validations.ts:121
← previous
201–290 of 290, ranked by callers