decode() function
Parse a querystring into a parameters object.
Signature:
export declare function decode(str: string, options?: IParseOptions): ParsedQs | unknown;
Parameters
| Parameter | Type | Description |
|---|---|---|
| str | string | |
| options | IParseOptions | Options to parse the querystring. |
Returns:
ParsedQs | unknown
A parameters object.
Remarks
This is a wrapper of qs.parse from the qs library.
See the qs package for more info.