UNPKG

@sasjs/cli

Version:

Command line interface for SASjs

19 lines (18 loc) 581 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.prefixAppLoc = void 0; var prefixAppLoc = function (appLoc, path) { if (appLoc === void 0) { appLoc = ''; } if (path === void 0) { path = ''; } if (!path) return ''; if (!/^\//.test(appLoc)) appLoc = '/' + appLoc; if (Array.isArray(path)) path = path.join(' '); return path .split(' ') .map(function (p) { return (/^\//.test(p) ? p : "".concat(appLoc, "/").concat(p)); }) .join(' '); }; exports.prefixAppLoc = prefixAppLoc;