@metreeca/core - v0.13.0
    Preparing search index...

    Variable baseConst

    base: { "": string } & { readonly [key: string]: string } = ...

    Base namespace for local resources.

    An open Namespace rooted at the synthetic base:/ origin, minting absolute IRIs for local resources that have no deployment origin of their own. Terms are appended to the fragment component, so generated IRIs are "hierarchical" identifiers sharing the base:/ root and resolving relative references against it.

    As base: IRIs carry no authority component, internalize and relativize return root-relative paths for them, rather than the path-relative references they return for schemes with an authority, such as http:.

    Note

    Provisional IANA registration of the base URI scheme under RFC 7595 is pending as [IANA #1462001].

    base[""];                               // IRI: "base:/#"
    base.label; // IRI: "base:/#label"

    getIRIBase(base.label); // "base:/"
    resolve(base[""], "x/y"); // "base:/x/y"
    relativize("base:/a/b", "base:/a/c"); // "/a/c" (root-relative, not "c")