-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Suggest using the URLSearchParams built-in #37
Comments
agree, this lib don't even support double entity like this lib almost the the same thing as this, but with much more code... Object.fromEntries(new URLSearchParams('?foo=bar'))
`?${new URLSearchParams({foo: 'bar'})}` |
This module was built years ago when Unlike alternatives like I agree that it would be better to use |
Feel free to open a PR with the suggestion. |
Great, see #38. |
The URL standard includes the URLSearchParams interface which in many cases should be able to replace this module. @sindresorhus is also considering suggesting it in his
query-string
module README.This module has 10M weekly downloads. It would really help mentioning the built-in, to help avoid cargo cult usage of this module when not necessary.
The twice as popular querystring package deprecated itself in favor of URLSearchParams.
The text was updated successfully, but these errors were encountered: