realpath should expand tilde to homedir #5011
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.
fs
Issues and PRs related to the fs subsystem / file system.
Hi,
I was wondering if I could translate a path beginning with a tilde to the users home path by using
realpath
. The docs say, there isos.homedir()
, but it would be cool if realpath could do this without having to replace "~" with the output ofos.homedir()
. Do you think this would be a good extension? I've seen, PHP has this behavior as well.Thanks
The text was updated successfully, but these errors were encountered: