MCPcopy Create free account
hub / github.com/cujojs/poly / joinPath

Function joinPath

test/curl.js:71–73  ·  view source on GitHub ↗
(path, file)

Source from the content-addressed store, hash-verified

69 }
70
71 function joinPath (path, file) {
72 return removeEndSlash(path) + '/' + file;
73 }
74
75 function removeEndSlash (path) {
76 return path && path.charAt(path.length - 1) == '/' ? path.substr(0, path.length - 1) : path;

Callers 2

normalizePkgDescriptorFunction · 0.85
curl.jsFile · 0.85

Calls 1

removeEndSlashFunction · 0.85

Tested by

no test coverage detected