MCPcopy Create free account
hub / github.com/Snapchat/dagger-browser / getModuleDisplayName

Function getModuleDisplayName

browser/src/components/NodeClosure.tsx:154–167  ·  view source on GitHub ↗
(module: string)

Source from the content-addressed store, hash-verified

152}
153
154function getModuleDisplayName(module: string): string {
155 const parts = module.split(".")
156 if (parts.length == 0) {
157 return module
158 }
159 var i = 0
160 while (i < parts.length && parts[i][0] !== parts[i][0].toUpperCase()) {
161 i++;
162 }
163 if (i < parts.length) {
164 return parts.slice(i, parts.length).join(".")
165 }
166 return module
167}

Callers 1

NodeClosureFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected