ability to fetch file://
URLs in node fetch
.
#48554
Labels
duplicate
Issues and PRs that are duplicates of other issues or PRs.
feature request
Issues that request new features to be added to Node.js.
What is the problem this feature will solve?
This makes working with standards easier on the server side. Currently, API such as
import.meta.url
return a file protocol URL. F.e.file:///path/to/foo.js
.Considering that import standard causes Node.js to return
file://
URLs, it is easy to want to do this:When not on the web (f.e. in Node.js, not supporting file:// for security reasons seems to be moot, see node-fetch/node-fetch#75).
What is the feature you are proposing to solve the problem?
It would make people's lives easier if they could simply follow standards in Node.js in a way similar to browser code, and the following would just work:
What alternatives have you considered?
n/a
The text was updated successfully, but these errors were encountered: