MCPcopy Create free account
hub / github.com/redis/RedisInsight / getModule

Function getModule

redisinsight/ui/src/utils/instance/instanceModules.ts:14–18  ·  view source on GitHub ↗
(propName = '')

Source from the content-addressed store, hash-verified

12 .replaceAll?.(/[-_]/gi, '')
13
14export const getModule = (propName = ''): any =>
15 find(
16 modulesInit,
17 ({ name }) => getGenericModuleName(name) === getGenericModuleName(propName),
18 ) ?? {}
19
20const convertToSemanticVersion = (input?: number): string => {
21 if (input === undefined || input === null) {

Callers 4

ShortInstanceInfoFunction · 0.90
transformModuleFunction · 0.90

Calls 1

getGenericModuleNameFunction · 0.85

Tested by

no test coverage detected