setup-cpp/packages/untildify-user
Amin Yahyaabadi 1865b24b57
docs: add readme for setup-apt and os-env
2024-08-16 02:01:51 -07:00
..
src fix: add biome linter + fix the issues 2024-08-06 23:44:32 -07:00
.eslintrc.json chore: add linting checks via turbo 2024-08-15 17:01:33 -07:00
README.md docs: add readme for setup-apt and os-env 2024-08-16 02:01:51 -07:00
package.json docs: add readme for setup-apt and os-env 2024-08-16 02:01:51 -07:00
tsconfig.json fix: add js file extension for all relative imports 2024-08-15 15:22:07 -07:00

README.md

untildify-user

Version License: Apache--2.0

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.