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

Are there any plans to provide parsed URL serialization? #70

Open
edenworky opened this issue Nov 5, 2022 · 0 comments
Open

Are there any plans to provide parsed URL serialization? #70

edenworky opened this issue Nov 5, 2022 · 0 comments

Comments

@edenworky
Copy link

Would there be a way to get a URL representation of a mutated parsed URL? I'm not sure what the best API for this would be, but just as an illustration:

let parsed = parseUrl('http://example.com')
parsed.query.foo = 1
expect(parsed.toString()).toEqual('http://example.com?foo=1')

Or is this out of scope for this package?

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

1 participant