The way this library deals with some falsey values is different from the other competing libraries.
https://repl.it/@heygrady/querystring
Ideally:
?a would parse as { a: null } (like query-string does)
{ a: null } would stringify to a (like query-string does)
{ a: undefined } would stringify to an empty string (like all others do)
- FWIW, querystringify is the only one that stringifies
null to "null" and undefined to "undefined"
- query-string has a unique handling of
null that enables props to not have an equals sign (which is nice for aesthetics and distinct from empty string)
- The special cases of
a=null and a=undefined will cause issues in other libraries
This library is nice because it's small. Good work!
The way this library deals with some falsey values is different from the other competing libraries.
https://repl.it/@heygrady/querystring
Ideally:
?awould parse as{ a: null }(like query-string does){ a: null }would stringify toa(like query-string does){ a: undefined }would stringify to an empty string (like all others do)nullto "null" andundefinedto "undefined"nullthat enables props to not have an equals sign (which is nice for aesthetics and distinct from empty string)a=nullanda=undefinedwill cause issues in other librariesThis library is nice because it's small. Good work!