username
URL: username
From MDN: "The username property of the URL interface is a string containing the username specified before the domain name."
Notes & further reading
Spec: URL Standard
MDN: URL.username
Example value:
const url = new URL("https://hello:cool@elide.dev/?one=two#hello");
url.username;
← "hello"
Content copied to clipboard