PHP 8.2.30
Preview: url.js Size: 433 B
/proc/self/root/opt/alt/alt-nodejs22/root/lib/node_modules/npm/node_modules/tuf-js/dist/utils/url.js

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

Directory Contents

Dirs: 0 × Files: 2

Name Size Perms Modified Actions
1.11 KB lrw-r--r-- 2026-02-23 06:54:00
Edit Download
433 B lrw-r--r-- 2026-02-23 06:54:00
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).