Skip to content

URLSearchParams #13

Description

@jamiebuilds

The current name is a bit unfortunate for this, but it would be nice if this library was generic over both FormData and URLSearchParams so you could do this:

let url = new URL("https://example.com?items.0=foo&items.1=bar")
let values = decode(url.searchParams)
// { items: ["foo", "bar"] }

You may then also want to support some more of the syntaxes commonly used in search params. See https://www.npmjs.com/package/qs for some examples

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions