deno.com
property URL.password

The password property of the URL interface is a string that represents the password specified in the URL.

Examples #

#

Example 1

const myURL = new URL('https://someone:somepassword@example.org/baz');
console.log(myURL.password);  // Logs "somepassword"

Type #

string

See #