mini-url
Version:
Lightweight isomorphic url parser.
20 lines (19 loc) • 457 B
TypeScript
export declare class URL {
protocol: string;
hostname: string;
pathname: string;
search: string;
host: string;
port: string;
hash: string;
href: string;
/**
* Creates a browser style URL object.
* @see {@link https://developer.mozilla.org/en-US/docs/Web/API/URL}
*/
constructor(path: string, base?: string);
/**
* Shortcut to retrieve the `href` for the URL.
*/
toString(): string;
}