awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
sindresorhus avatar

sindresorhus/query-string

0
View on GitHub↗
6,904 stars·451 forks·JavaScript·MIT·17 views

Query String

This is a suite of JavaScript utilities for the bidirectional conversion and manipulation of URL components and query parameters. It provides a mechanism for parsing URL query strings into data objects and serializing those objects back into URL-encoded strings.

The library includes functions for filtering, isolating, and modifying parameters within a full URL or query string. It supports the construction of complete web links by combining base addresses with formatted query parameters.

The toolset covers data transformation primitives such as alphabetical key sorting, input sanitization, and type-casting for numbers and booleans. It also handles the stringification of nested arrays and the removal of specific keys via predicate-based filtering.

Features

  • URL Data Parsing - Converts complex URL query strings into structured JavaScript objects for application logic.
  • URL Utilities - Provides a lightweight JavaScript utility for parsing and manipulating URL components.
  • Query String Parsers - Provides bidirectional conversion between URL query strings and JavaScript data objects.
  • Query String Encoding - Transforms flat JavaScript objects into standard URL-encoded query strings.
  • Query String Construction - Transforms data objects into URL-encoded query strings for API requests and web addresses.
  • Request Parameter Serialization - Encodes data objects and arrays into formatted query strings for web requests.
  • URL Construction - Combines base addresses with processed parameters to generate complete and valid web links.
  • Predicate Property Filtering - Removes specific keys from data objects or strings using custom boolean predicate functions.
  • Type Conversion and Casting - Casts string values into numbers or booleans during the parsing of query parameters.
  • String Manipulators - Offers a set of functions to filter, isolate, and modify parameters within URLs.
  • Array Parameter Serialization - Converts nested arrays into repeated query parameters to maintain compatibility with server-side expectations.
  • Parameter Encoding Schemes - Manages the encoding of arrays and primitives to ensure compatibility with various server implementations.
  • Query Parameters - Removes or retains specific keys from a query string based on a provided list of identifiers.
  • Query String Extraction - Isolates the query portion of a full URL to facilitate easier parsing and manipulation.
  • String Manipulation - Parses and stringifies URL query parameters.
  • String Utilities - URL query string parser and stringifier.
  • URL and Network Utilities - Parses and stringifies URL query parameters.
  • 路由和链接(Routing And URLs) - Listed in the “路由和链接(Routing And URLs)” section of the Awesome Frontend awesome list.

Star history

Star history chart for sindresorhus/query-stringStar history chart for sindresorhus/query-string

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Frequently asked questions

What does sindresorhus/query-string do?

This is a suite of JavaScript utilities for the bidirectional conversion and manipulation of URL components and query parameters. It provides a mechanism for parsing URL query strings into data objects and serializing those objects back into URL-encoded strings.

What are the main features of sindresorhus/query-string?

The main features of sindresorhus/query-string are: URL Data Parsing, URL Utilities, Query String Parsers, Query String Encoding, Query String Construction, Request Parameter Serialization, URL Construction, Predicate Property Filtering.

What are some open-source alternatives to sindresorhus/query-string?

Open-source alternatives to sindresorhus/query-string include: medialize/uri.js — URI.js is a full-featured JavaScript library for parsing, building, normalizing, and mutating URLs and their… ljharb/qs — qs is a query string parsing and serialization library used to convert URL query strings into JavaScript objects and… masterminds/sprig — Sprig is a comprehensive library of helper functions designed to extend the Go text template engine. It provides a… 47ng/nuqs — nuqs is a TypeScript library for managing React component state through the browser's URL query string. It provides a… snd/url-pattern — easier than regex string matching patterns for urls and other strings. turn strings into data or data into strings. tmenier/flurl — Flurl is a .NET fluent URL builder and HTTP client wrapper designed for constructing complex web addresses and sending…

Open-source alternatives to Query String

Similar open-source projects, ranked by how many features they share with Query String.
  • medialize/uri.jsmedialize avatar

    medialize/URI.js

    6,228View on GitHub↗

    URI.js is a full-featured JavaScript library for parsing, building, normalizing, and mutating URLs and their components programmatically. It provides a mutable-component object model that exposes each URL part as a separate object with getter and setter methods, enabling direct manipulation of schemes, hosts, paths, query strings, and fragments. The library implements strict RFC 3986 compliance for encoding, decoding, and normalization of URI components, and includes a template expansion engine that substitutes variables using operator-specific rules. The library distinguishes itself through

    JavaScript
    View on GitHub↗6,228
  • ljharb/qsljharb avatar

    ljharb/qs

    8,940View on GitHub↗

    qs is a query string parsing and serialization library used to convert URL query strings into JavaScript objects and transform objects or arrays back into URI-encoded strings. It functions as a secure parser and URI encoding utility, specifically designed to handle nested data structures. The library distinguishes itself through configurable nesting styles and array serialization formats. It provides support for custom character encoding logic and utilizes charset sentinels to manage conversions between UTF-8 and ISO-8859-1. To prevent resource exhaustion and security vulnerabilities, the pr

    JavaScript
    View on GitHub↗8,940
  • masterminds/sprigMasterminds avatar

    Masterminds/sprig

    4,692View on GitHub↗

    Sprig is a comprehensive library of helper functions designed to extend the Go text template engine. It provides a wide array of custom functions that can be injected into the engine to enable complex data manipulation and logic directly within templates. The project offers specialized capabilities for cryptography, including the generation of private keys, X.509 certificates, and secure password hashes. It also includes advanced logic extensions for semantic versioning comparison, ternary evaluations, and the resolution of environment variables from the host operating system. The library co

    Gogotemplatetemplates
    View on GitHub↗4,692
  • 47ng/nuqs47ng avatar

    47ng/nuqs

    10,591View on GitHub↗

    nuqs is a TypeScript library for managing React component state through the browser's URL query string. It provides a type-safe hook-based approach that synchronizes component state with the address bar, enabling shareable and bookmarkable application states. The library handles parsing and serializing URL query parameters into typed JavaScript values, supporting integers, floats, booleans, dates, and custom types with bijectivity verification. The library distinguishes itself through its comprehensive approach to URL state management, combining batch URL updates that merge multiple parameter

    TypeScriptquery-paramsreactsearch-params
    View on GitHub↗10,591
  • See all 30 alternatives to Query String→