Your IP : 3.142.195.79


Current Path : /opt/alt/alt-nodejs20/root/lib/node_modules/npm/node_modules.bundled/tuf-js/dist/utils/
Upload File :
Current File : //opt/alt/alt-nodejs20/root/lib/node_modules/npm/node_modules.bundled/tuf-js/dist/utils/url.js

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.join = void 0;
const url_1 = require("url");
function join(base, path) {
    return new url_1.URL(ensureTrailingSlash(base) + removeLeadingSlash(path)).toString();
}
exports.join = join;
function ensureTrailingSlash(path) {
    return path.endsWith('/') ? path : path + '/';
}
function removeLeadingSlash(path) {
    return path.startsWith('/') ? path.slice(1) : path;
}

?>