Utility functions to handle url-query
npm i url-query-utils
import {get, parse, set} from 'url-query-utils'
const url = "https://www.google.com/search?q=deno";
parse(url)
// {path: "https://www.google.com/search", params: { q: "deno" }})
get(url, "q")
// "deno"
set(url, {q: "node"})
// https://www.google.com/search?q=node
set(url, {lang: "en"})
// https://www.google.com/search?q=deno&lang=en