Module

std/node/querystring.ts

Deno standard library
Go to Latest
function stringify
import { stringify } from "https://deno.land/std@0.145.0/node/querystring.ts";

Produces a URL query string from a given obj by iterating through the object's "own properties".

Parameters

obj: Record<string, any>

The object to serialize into a URL query string.

optional
sep: string

The substring used to delimit key and value pairs in the query string. Default: '&'.

optional
eq: string

The substring used to delimit keys and values in the query string. Default: '='.

optional
options: StringifyOptions

The stringify options

Returns

string