ljharb/qs
在 GitHub 查看Feature request: option for deciding how to parse query without argument
Open
#223 创建于 2017年8月18日
feature requesthelp wantedparsestringify
描述
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!