The URL interface represents an object providing static methods used for creating object URLs.
class URL | globals module | Bun BuildDocsReferenceGuidesBlogDiscord/Globals/URLMcanParseMcreateObjectURLPhashPhostPhostnamePhrefPoriginMparsePpasswordPpathnamePportPprotocolMrevokeObjectURLPsearchPsearchParamsMtoJSONMtoStringPusername BuildDocsReferenceGuidesBlogDiscord /Globals/URLMcanParseMcreateObjectURLPhashPhostPhostnamePhrefPoriginMparsePpasswordPpathnamePportPprotocolMrevokeObjectURLPsearchPsearchParamsMtoJSONMtoStringPusername hash: string host: string hostname: string href: string readonly origin: string password: string pathname: string port: string protocol: string search: string readonly searchParams: URLSearchParams username: string toJSON(): string; toString(): string;static canParse(url: string | URL,base?: string | URL): boolean; static createObjectURL(obj: Blob | MediaSource): string; static parse(url: string | URL,base?: string | URL): null | URL; static revokeObjectURL(url: string): void;
Search the reference...
/
class
URLclass URLResources
ReferenceDocsGuidesDiscordMerch StoreGitHubBlogToolkit
RuntimePackage managerTest runnerBundlerPackage runnerProject
Bun 1.0Bun 1.1Bun 1.2Bun 1.3RoadmapContributingLicenseBaked with ❤️ in San Francisco
We're hiring →class URL | globals module | Bun,AI智能索引,全网链接索引,智能导航,网页索引
- The URL interface represents an object providing static methods used for creating object URLs.
[MDN Reference](https://developer.mozilla.org/docs/Web/API/URL)