hostname

abstract val hostname: String

URL: hostname

From MDN: "The hostname property of the URL interface is a string containing the domain name of the URL."

 

Notes & further reading

Example value:

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