Support URL
in node:path
module?
#41520
Labels
feature request
Issues that request new features to be added to Node.js.
path
Issues and PRs related to the path subsystem.
stale
whatwg-url
Issues and PRs related to the WHATWG URL implementation.
What is the problem this feature will solve?
We are starting to use
URL
forfs
APIs, but I have to useurl.fileURLToPath()
when I need to use APIs likepath.basename()
andpath.relative()
, it would be nice we can supportURL
directly.What is the feature you are proposing to solve the problem?
Accept
URL
in APIs likepath.basename()
andpath.relative()
.What alternatives have you considered?
No response
The text was updated successfully, but these errors were encountered: