Untildify a path for the current user even if it is root
npm install --save untildify-user
returns: string
Replaces a tilde with the user's home directory
Parameters:
- path (
string
) - The path to untildify
returns: string
UntildifyUser("~/foo") // /home/user/foo
You can sponsor my work here:
https://github.com/sponsors/aminya
Pull requests, issues and feature requests are welcome. See the Contributing guide.