Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/openupm/openupm
/ getNamespace
Function
getNamespace
app/utils/package.js:182–187 ·
view source on GitHub ↗
(packageName)
Source
from the content-addressed store, hash-verified
180
181
// Return namespace from package name
182
const
getNamespace =
function
(packageName) {
183
return
packageName
184
.split(
"."
)
185
.slice(0, 2)
186
.join(
"."
);
187
};
188
189
module.exports = {
190
cleanRepoUrl,
Callers
1
app-utils-package.js
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected