Skip to content

Latest commit

 

History

History
22 lines (14 loc) · 583 Bytes

README.md

File metadata and controls

22 lines (14 loc) · 583 Bytes

WHATWG URL

Introduce the WHATWG URL and URLSearchParams APIs as intrinsic ECMAScript objects.

Motivation

Unify and standardize URL parsing and handling across ECMAScript environments.

Note: Node.js has introduced WHATWG compatible URL parsing as a stable feature in v8.0.

Example

const base = new URL('http://example.org/foo');
const url = new URL('bar', base);

API

The API would be as defined by the WHATWG URL specification.