Description
fast-querystring is a Node.js package that parses and stringifies query strings, as a faster alternative to the built-in node:querystring module. It provides the parse and stringify methods and uses the & separator by default. Repeated keys are handled the way node:querystring handles them, so foo=bar&foo=baz parses into an array. Keys with no value parse to an empty string. Parsed objects have no prototype methods, and the package only accepts string input. Stringify does not support nested values, just as node:querystring does not. The README includes benchmarks for parsing, stringifying and importing the package, run on Node.js 20.2 on an Apple M1 Max, so you can check the numbers for your own workload. You install it with the command shown in the README and call it from your code in the same way as the built-in module. It suits Node.js developers who parse many query strings in servers or other performance-sensitive code and want the same behaviour with less overhead.…
Highlights
- Faster alternative to node:querystring
- parse and stringify methods
- Repeated keys parse into arrays
- Parsed objects have no prototype methods
- Benchmarks included in the README
Ratings & Reviews
No ratings yet
Be the first to rate Fast Querystring.
People also visit
Node CSV
Full featured CSV parser with simple api and tested against large datasets
Safe Stable Stringify
Safe, deterministic and fast serialization alternative to JSON.stringify
Query Translator
Query Translator is a search query translator with AST representation
Fast Querystring FAQ
What is fast-querystring?
A Node.js package that parses and stringifies query strings, as a faster alternative to node:querystring.
How does it handle repeated keys?
The same way node:querystring does. For example, foo=bar&foo=baz parses into an array with both values.
What are its limits?
It accepts only string input, and stringify does not support nested values.
How fast is it?
The README includes benchmarks run on Node.js 20.2 on an Apple M1 Max, covering parsing, stringifying and importing the package.
Is it open source?
The code is public on GitHub at anonrig/fast-querystring.
What are the best Fast Querystring alternatives?
Popular alternatives to Fast Querystring include Query Translator, Tinyglobby and Faster Fifo. See all Fast Querystring alternatives







