MCPcopy
hub / github.com/amark/gun / USE

Function USE

sea.js:9–17  ·  view source on GitHub ↗
(arg)

Source from the content-addressed store, hash-verified

7 root = root || {};
8 var console = root.console || {log: function(){}};
9 function USE(arg){
10 return arg.slice? USE[R(arg)] : function(mod, path){
11 arg(mod = {exports: {}});
12 USE[R(path)] = mod.exports;
13 }
14 function R(p){
15 return p.split('/').slice(-1).toString().replace('.js','');
16 }
17 }
18 if(typeof module !== "undefined"){ var common = module }
19 /* UNBUILD */
20

Callers 1

sea.jsFile · 0.70

Calls 1

RFunction · 0.70

Tested by

no test coverage detected