mirror of
https://github.com/aminya/setup-cpp
synced 2024-11-30 21:22:30 +08:00
.. | ||
src | ||
.eslintrc.json | ||
package.json | ||
README.md | ||
tsconfig.json |
untildify-user
Untildify a path for the current user even if it is root
Install
npm install --save untildify-user
Usage
userHomeDir
(function)
returns: string
untildifyUser
(function)
Replaces a tilde with the user's home directory
Parameters:
- path (
string
) - The path to untildify
returns: string
UntildifyUser("~/foo") // /home/user/foo
🤝 Contributing
You can sponsor my work here:
https://github.com/sponsors/aminya
Pull requests, issues and feature requests are welcome. See the Contributing guide.