Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jasnell/proposal-url
Proposal to add WHATWG URL to ECMAScript
https://github.com/jasnell/proposal-url
Last synced: 5 days ago
JSON representation
Proposal to add WHATWG URL to ECMAScript
- Host: GitHub
- URL: https://github.com/jasnell/proposal-url
- Owner: jasnell
- Created: 2016-10-10T18:50:05.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-08-16T14:44:44.000Z (about 7 years ago)
- Last Synced: 2024-08-04T09:07:35.905Z (3 months ago)
- Size: 1000 Bytes
- Stars: 33
- Watchers: 7
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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`](https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V8.md#8.0.0).
## Example
```js
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](https://url.spec.whatwg.org/#api).