Extremely fast querystring parser with same API and semantics as qs + DoS Protection.
#Quick start
npm install querystringparser
var querystringparser = require("querystringparser");querystringparser.parse("foo=bar");
#API
Exactly the same API and semantics are implemented 100% to make comparison fair.
DoS protection checks for input length, amount of total keys and maximum nesting depth of keys.
var qs = require("querystringparser");qs.maxLength //Maximum amount of characters in the input string to parse: 32768qs.maxKeys //Maximum amount of key-value pairs in the query string: 256qs.maxDepth //Maximum nesting depth of keys: 4 e.g. a[b][c][d]=3
a RangeError is thrown when these limits are reached.
#Performance
To run benchmarks run the bench bash script while on the project root.