@njc/url
v2.0.0
Published
@njc/url ========
Downloads
11
Readme
@njc/url
Simple url parser following RFC 3986, section 3 (2005), Does not depend on other libraries.
Usage
interface Url {
readonly schema: string;
readonly userinfo: string;
readonly host: string;
readonly port: number;
readonly path: string;
readonly query: string;
readonly fragment: string;
}
/* Uses the base authority and schema with the specified path */
function UrlFrom(base: Url, path: string) : Url
function ParseUrl(url: string): Url
function UrlToString(url: Url): string