username

abstract override var username: String

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

Example value:

const url = new URL("https://hello:cool@elide.dev/?one=two#hello");
url.username;
← "hello"

Note: This property is present on a mutable version of the URL interface.