Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

std/node/querystring.ts>stringify

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
function stringify
import { stringify } from "https://deno.land/std@0.87.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 = [UNSUPPORTED]

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

optional
eq = [UNSUPPORTED]

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

optional
unnamed 3: StringifyOptions = [UNSUPPORTED]

The stringify options

Returns

string