path.format
should accept a file extension without a leading dot
#44343
Labels
feature request
Issues that request new features to be added to Node.js.
path
Issues and PRs related to the path subsystem.
What is the problem this feature will solve?
Some (user-land) APIs return a file extension without the dot.
What is the feature you are proposing to solve the problem?
It would be nice if
path.format()
would handle file extension without the leading dot.Current behavior:
Wanted behavior:
The current behavior makes no sense and should at minimum have caused an error.
So what I'm requested is that if the
ext
is missing a leading dot, it would be added.What alternatives have you considered?
No response
The text was updated successfully, but these errors were encountered: