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

Support URL in node:path module? #41520

Closed
fisker opened this issue Jan 14, 2022 · 3 comments
Closed

Support URL in node:path module? #41520

fisker opened this issue Jan 14, 2022 · 3 comments
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.

Comments

@fisker
Copy link
Contributor

fisker commented Jan 14, 2022

What is the problem this feature will solve?

We are starting to use URL for fs APIs, but I have to use url.fileURLToPath() when I need to use APIs like path.basename() and path.relative(), it would be nice we can support URL directly.

What is the feature you are proposing to solve the problem?

Accept URL in APIs like path.basename() and path.relative().

What alternatives have you considered?

No response

@fisker fisker added the feature request Issues that request new features to be added to Node.js. label Jan 14, 2022
@aduh95
Copy link
Contributor

aduh95 commented Jan 14, 2022

FWIW, regarding path.relative, there's a proposal for it in the official spec, but the proposal hasn't get much traction so far: whatwg/url#421

@aduh95 aduh95 added whatwg-url Issues and PRs related to the WHATWG URL implementation. path Issues and PRs related to the path subsystem. labels Jan 14, 2022
@targos targos moved this to Awaiting triage in Node.js feature requests Jan 16, 2022
@github-actions
Copy link
Contributor

There has been no activity on this feature request for 5 months and it is unlikely to be implemented. It will be closed 6 months after the last non-automated comment.

For more information on how the project manages feature requests, please consult the feature request management document.

@github-actions
Copy link
Contributor

There has been no activity on this feature request and it is being closed. If you feel closing this issue is not the right thing to do, please leave a comment.

For more information on how the project manages feature requests, please consult the feature request management document.

@targos targos moved this from Pending Triage to Stale in Node.js feature requests Apr 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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.
Projects
None yet
Development

No branches or pull requests

3 participants
@fisker @aduh95 and others