• Parse the query portion of a URL string, and return a parameter object for the parsed key/value pairs.

    Multiple parameters of the same name will be stored as an array on the returned object.

    Parameters

    • search: string

      the query portion of the URL, which may optionally include the leading ? character

    • Optional multiValueKeys: Set<string>

      if provided, a set of keys for which to always treat as a multi-value array, even if there is only one value

    Returns Record<string, string | string[]>

    the parsed query parameters, as a parameter object

Generated using TypeDoc