MCPcopy
hub / github.com/FoalTS/foal / join

Function join

packages/core/src/core/routes/utils.ts:54–56  ·  view source on GitHub ↗
(...paths: (string|undefined)[])

Source from the content-addressed store, hash-verified

52 * @returns {string} The resulted path.
53 */
54export function join(...paths: (string|undefined)[]): string {
55 return paths.join('').replace(/(\/)+/g, '/');
56}

Callers 15

utils.spec.tsFile · 0.90
processRouteFunction · 0.90
isCommonFunction · 0.85
indexFunction · 0.85
mainFunction · 0.85
createHttpResponseFileFunction · 0.85
testLocalFunction · 0.85
renderFunction · 0.85
render.spec.tsFile · 0.85

Calls 1

replaceMethod · 0.45

Tested by 5

testLocalFunction · 0.68
rmDirAndFilesIfExistFunction · 0.68
compareSpecAndTemplateFunction · 0.68
testAssetFunction · 0.68
renderAppMethod · 0.68