awesome-repositories.com
博客
awesome-repositories.com

通过 AI 驱动的搜索,发现最优秀的开源仓库。

探索精选搜索开源替代品自托管软件博客网站地图
项目关于排名机制媒体报道MCP 服务器
法律隐私政策服务条款
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
sindresorhus avatar

sindresorhus/query-string

0
View on GitHub↗
6,904 星标·451 分支·JavaScript·MIT·4 次浏览

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.
  • 字符串操作 - 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 历史

sindresorhus/query-string 的 Star 历史图表sindresorhus/query-string 的 Star 历史图表

AI 搜索

探索更多 awesome 仓库

用简单的语言描述您的需求 —— AI 将根据相关性为您从数千个精选开源项目中进行排序。

Start searching with AI

Query String 的开源替代方案

相似的开源项目,按与 Query String 的功能重合度排序。
  • medialize/uri.jsmedialize 的头像

    medialize/URI.js

    6,228在 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
    在 GitHub 上查看↗6,228
  • ljharb/qsljharb 的头像

    ljharb/qs

    8,940在 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
    在 GitHub 上查看↗8,940
  • masterminds/sprigMasterminds 的头像

    Masterminds/sprig

    4,692在 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
    在 GitHub 上查看↗4,692
  • 47ng/nuqs47ng 的头像

    47ng/nuqs

    10,591在 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
    在 GitHub 上查看↗10,591
查看 Query String 的所有 30 个替代方案→

常见问题解答

sindresorhus/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.

sindresorhus/query-string 的主要功能有哪些?

sindresorhus/query-string 的主要功能包括:URL Data Parsing, URL Utilities, Query String Parsers, Query String Encoding, Query String Construction, Request Parameter Serialization, URL Construction, Predicate Property Filtering。

sindresorhus/query-string 有哪些开源替代品?

sindresorhus/query-string 的开源替代品包括: 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…