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

package deprecated #10

Open
jacobdalamb opened this issue Nov 22, 2023 · 2 comments
Open

package deprecated #10

jacobdalamb opened this issue Nov 22, 2023 · 2 comments

Comments

@jacobdalamb
Copy link

https://developer.mozilla.org/en-US/docs/Web/API/URL/canParse_static does basically the same thing

@sindresorhus
Copy link
Owner

How exactly does it do the same thing?

@jacobdalamb
Copy link
Author

I apologize if my previous comment may have oversimplified the comparison. This new API method in the URL interface can check whether a given URL (both absolute and relative) can be parsed and is valid. I am unsure if using is-relative-url and is-absolute-url might still be a simpler and more efficient choice.

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