sindresorhus/query-string
Parse and stringify URL query strings observed · 2026-08-28
Health v2 · maintenance only
93/100
- Activity 96
- Release rhythm 84
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 31
- age_days: 4676
- days_rel: 27
- days_push: 27
- n_releases_24m: 10
Adoption not part of the score
6903 stars · 452 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
A JavaScript library for parsing and stringifying URL query strings, with support for arrays, nested objects, and various encoding formats. It is a zero-dependency npm package by sindresorhus targeting modern browsers and Node.js.
Use cases
- parse url query strings into javascript objects
- stringify an object into a url query string
- parse arrays in query parameters with bracket or comma format
- extract query parameters from location.search or location.hash
- encode and decode url parameters safely
- build query strings for api requests
When to choose
- you need robust query string parsing with array and object support beyond native URLSearchParams
- you want a small, zero-dependency, well-tested utility
- you need consistent handling of encoding, decoding, and custom array formats
When to avoid
- you only need basic query string operations - the native URLSearchParams API may suffice
- you need legacy browser support, as it targets only modern Chrome, Firefox, and Safari
Facets
library · maturity stable
parser serialization developer-tools web-development frontend developer-tools browser query-string url urlsearchparams npm-package stringify zero-dependency nodejs javascript
2 sources
- readme: https://github.com/sindresorhus/query-string · fetched 2026-08-28 · 4e89faa97b6e
- registry_npm: https://registry.npmjs.org/query-string · fetched 2026-08-29 · 8d4d94dba294
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| sindresorhus/query-string | main | 93 |
For agents
markdown · JSON · MCP: product_card(name="sindresorhus/query-string")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem