relativeURLit
relativeURLit is a library designed for working with URLs, with an emphasis on relative references. It provides utilities to derive relative URLs from a base URL and to resolve relative links found in documents into absolute URLs. The project aims for predictable behavior, RFC 3986 compatibility, and broad applicability across environments such as web browsers and server-side runtimes.
Its API typically includes functions such as toRelative(base, target) and toAbsolute(base, relative), or an equivalent URL
Common use cases include generating portable HTML or documentation with links rooted at a site base, transforming
Design goals emphasize deterministic outputs, transparent edge-case handling, and easy integration into build processes. The project
Related concepts include relative URLs, URL normalization, and standards such as RFC 3986.