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

std/node/querystring.ts>parse

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
function parse
import { parse } from "https://deno.land/std@0.104.0/node/querystring.ts";

Parses a URL query string into a collection of key and value pairs.

Parameters

str: string

The URL query string to parse

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: ParseOptions = [UNSUPPORTED]

The parse options

Returns

{ [key: string]: string[] | string; }