Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/source_map/lib/util.js>relative

Port of mozilla / source-map to deno.
Latest
function relative
import { relative } from "https://deno.land/x/source_map@0.8.0-beta.1/lib/util.js";

Make a path relative to a URL or another path. If returning a relative URL is not possible, the original target will be returned. All returned URLs will be normalized.

Parameters

rootURL

The root path or URL.

targetURL

The path or URL to be made relative to aRoot.