dev-notes/Node.js/Standard Packages/url.md
2021-01-31 11:05:37 +01:00

377 B

Url Module

http://user:pass@sub.example.com:8080/p/a/t/h?query=string#hash

URI Syntax

Basics


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

URL.searchParams
URL.searchParams.get("queryparam");
URL.searchParams.has("queryparam");