MCPcopy Index your code
hub / github.com/NativeScript/NativeScript / getModuleName

Function getModuleName

packages/core/utils/common.ts:54–58  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

52}
53
54export function getModuleName(path: string): string {
55 const moduleName = path.replace('./', '');
56
57 return sanitizeModuleName(moduleName);
58}
59
60/**
61 * Helps sanitize a module name if it is prefixed with '~/', '~' or '/'

Callers

nothing calls this directly

Calls 2

sanitizeModuleNameFunction · 0.85
replaceMethod · 0.80

Tested by

no test coverage detected