MCPcopy Create free account
hub / github.com/NodeRT/NodeRT / requireNamespace

Function requireNamespace

src/NodeRTLib/JsPackageFiles/main.js:43–54  ·  view source on GitHub ↗
(namespace)

Source from the content-addressed store, hash-verified

41 }
42
43 function requireNamespace(namespace) {
44 var moduleName = namespace.toLowerCase();
45
46 if (npmScope) {
47 moduleName = '@' + npmScope + '/' + moduleName;
48 }
49
50 var m = require(moduleName);
51 delete namespaceRegistry[namespace];
52 namespaceRegistry[namespace] = m;
53 return m;
54 }
55
56 for (var i in externalReferencedNamespaces) {
57 var ns = externalReferencedNamespaces[i];

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected