Skip to content
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

Why am I getting this? #324

Closed
exzos28 opened this issue Aug 17, 2021 · 1 comment
Closed

Why am I getting this? #324

exzos28 opened this issue Aug 17, 2021 · 1 comment

Comments

@exzos28
Copy link

exzos28 commented Aug 17, 2021

const link = "http://localhost:19006/farmAction?action=register&ref=utm_source&ver=1.0.2"
const parsed = queryString.parse(link);

Why are http://localhost:19006/farmAction/?action in the object?

image

@sindresorhus
Copy link
Owner

You need to use the .parseUrl method.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants