ljharb/qs
View on GitHubFeature request: option for deciding how to parse query without argument
Open
#223 opened on Aug 18, 2017
feature requesthelp wantedparsestringify
Description
Hi,
I was wondering if it would be possible to support passing an option for deciding how to parse queries without arguments? Currently url?foo can be parsed as either the empty string or as null. I am wondering if it's possible to have the parser treat a query without arguments as true.
Some background: I ran into a case in our codebase which does this, it seemed odd to me but apparently there's nothing in the standards that forbid queries without arguments. Are there more specific standards (e.g. the node implementation) that this library is trying to adhere to?
Thanks!