Bun

interface

url.URLFormatOptions

interface URLFormatOptions

  • auth?: boolean

    true if the serialized URL string should include the username and password, false otherwise.

  • fragment?: boolean

    true if the serialized URL string should include the fragment, false otherwise.

  • search?: boolean

    true if the serialized URL string should include the search query, false otherwise.

  • unicode?: boolean

    true if Unicode characters appearing in the host component of the URL string should be encoded directly as opposed to being Punycode encoded.