2.0.0 • Published 6 years ago

@njc/url v2.0.0

Weekly downloads
1
License
ISC
Repository
-
Last release
6 years ago

@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

Future versions

2.0.0

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago