query-string icon indicating copy to clipboard operation
query-string copied to clipboard

Parse and stringify URL query strings

Results 38 query-string issues
Sort by recently updated
recently updated
newest added

Version: `v7.1.1` Crash occured when `# kun%ea%ba%5a%ba` is parsed by `queryString.parse` This hash is valid and should be parsed correctly as `{ ' kun%ea%ba%5a%ba': null }` For example in chrome's...

I am trying to clean a URL and only keep some parameters that I need in order to parse them so I was using pick method providing it the url,...

I saw the issue: https://github.com/sindresorhus/query-string/issues/305 And I understand the concept but is it possible to add a flag to the queryString.parse options that will keep the + sign and will...

I have the following url: https://localhost:3000/search?q=dave%20&%20busters Inside my useEffect() method when trying to retrieve the parsed string, the response object doesn't seem to be accurate. Please check the screenshots below:...

When I am using `queryString.stringify({foo: [1, 2, 3]}, {arrayFormat: 'comma'});` the result is `'foo=1,2,3'`, is there a way to get the entire string encoded to `'foo%3D1%2C2%2C3'`, which is a result...

In iOS17, full URL will be re-encoded when arrayFormatSeparator character not allowed in [RFC 3986](https://www.ietf.org/rfc/rfc3986.txt). Details in [https://developer.apple.com/documentation/foundation/nsurl/1572047-urlwithstring#discussion](https://developer.apple.com/documentation/foundation/nsurl/1572047-urlwithstring#discussion)

Basically I would like to have a similar way to the 'bracket-separator' option but for 'colon-list-separator' It would look like this: `actions:list=create,delete` instead of `actions:list=create&actions:list=delete` I would be happy to...

Hi @sindresorhus, I decided to pick up this feature request. I used your comments on this PR: https://github.com/sindresorhus/query-string/pull/249 to help guide me on implementation requirements. Resolves https://github.com/sindresorhus/query-string/issues/210 related to https://github.com/sindresorhus/query-string/issues/201...

I'm basically looking to achieve the opposite of #199 – I want `["123", "00A", "441"]` to remain `["123", "00A", "441"]`. For our current needs the only properties that would have...

Test case: ```ts it('should parse arrays correctly', () => { const search = '?testA%5B%5D=1&testB%5B%5D=a%2Cb%2Cc%2Cd%2Ce%2Cf&testC=true'; const result = queryString.parse(search, { parseBooleans: true, parseNumbers: true, arrayFormat: 'bracket-separator', }); expect(result).toEqual({ testA: [1], testB:...