Mparse
Bun

method

URL.parse

static parse(
url: string | URL,
base?: string | URL
): null | URL;

Referenced types

class URL

The URL interface represents an object providing static methods used for creating object URLs.

MDN Reference