MCPcopy Create free account
hub / github.com/socketstream/socketstream / relativePath

Function relativePath

lib/client/bundler/index.js:276–279  ·  view source on GitHub ↗
(p, dirType)

Source from the content-addressed store, hash-verified

274 sourcePaths: function(paths) {
275
276 function relativePath(p, dirType) {
277 var relativeStart = p.indexOf('./') === 0 || p.indexOf('../') === 0;
278 return relativeStart? prefixPath(options.dirs.client,p) : prefixPath(options.dirs[dirType], p);
279 }
280
281 function prefixPath(base,p) {
282 base = base.replace(/^\//,'');

Callers 2

entriesFunction · 0.85
index.jsFile · 0.85

Calls 1

prefixPathFunction · 0.85

Tested by

no test coverage detected