Package: @effect/platform
Module: Url
Retrieves the query parameters from a URL.
Details
This function extracts the query parameters from a URL object and returns
them as UrlParams. The resulting structure can be easily manipulated or
inspected.
Example
import { Url } from "@effect/platform"
const myUrl = new URL("https://example.com?foo=bar")
// Read parameters
const params = Url.urlParams(myUrl)
console.log(params)
// Output: [ [ 'foo', 'bar' ] ]
Signature
declare const urlParams: (url: URL) => UrlParams.UrlParams
Since v1.0.0