(path: string)
| 52 | } |
| 53 | |
| 54 | export 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 '/' |
nothing calls this directly
no test coverage detected