query-string
query-string copied to clipboard
Parse and stringify URL query strings
The URL standard includes the [`URLSearchParams`](https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams) interface which in many cases should be able to replace this module. I think it should be suggested as an alternative. ````js > String(new...
I have an issue with array params url: 1. `?categoryIds=1&categoryIds=2` => `categoryIds=['1', '2']` : Right 2. `?categoryIds=1` => `categoryIds='1'` : Wrong => Expect: `categoryIds=['1']` Could you add regex option for...
refs: https://blog.sindresorhus.com/get-ready-for-esm-aa53530b3f77 i'm happy to help if you want this way. ✋
I want to exclude a value of an array from query string. How I can do this? ``` const removeFilter = (filterKey, filterValue) => { const test = queryString.exclude( location.search,...
It seems keys generated from arrays with arrayFormat: 'bracket' don't get urlEncoded: `stringify({ a: [1, 2, 3 ]}, { arrayFormat: 'bracket' });` => `a[]=1&a[]=2&a[]=3`
Hello. I am trying to parse an array of elements separated by the pipe character '|'. The elements themselves might contain the pipe char, hence those should be encoded first...
Could not find a from to post this question in so posting it here. How can I skip a key that has already been parsed/added? Is there an option I...
I have a field that needs to be able to use a comma inside of a single value. Is there a way I can escape the comma so it doesn't...
I am not sure if the Symbol value would be ignored ```js const { stringify } = require('query-string'); stringify({ a: () => (1), b: Symbol('test') }); ``` ```bash module.exports =...
So, want to used parse function by generic ```typescript export function parse(query: string, options?: ParseOptions): T; ``` And the IDE can suggest the query object's properties. 