Now that url.parse is deprecated in Node.js, how do people go about parsing urls that are not fully qualified, e.g. `/foo?bar=baz` from `req.url`. Do you still use it and ignore that it's deprecated, use a user-land module instead, or something else?
-
-
Previously I've just ignored that it was deprecated and used it for these use-cases anyway. But now that
@StandardJS v13 has been released, the linter complains that I'm using a deprecated API. I can of course add `// eslint-disable-line node/no-deprecated-api` everywhere
-
new URL('/foo', 'http://localhost');
- 1 more reply
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.