mirror of https://github.com/aminya/setup-cpp
49 lines
1003 B
Markdown
49 lines
1003 B
Markdown
<h1 align="center">untildify-user</h1>
|
|
<p>
|
|
<img alt="Version" src="https://img.shields.io/badge/version-1.0.0-blue.svg?cacheSeconds=2592000" />
|
|
<a href="#" target="_blank">
|
|
<img alt="License: Apache--2.0" src="https://img.shields.io/badge/License-Apache--2.0-yellow.svg" />
|
|
</a>
|
|
</p>
|
|
|
|
> Untildify a path for the current user even if it is root
|
|
|
|
## Install
|
|
|
|
```sh
|
|
npm install --save untildify-user
|
|
```
|
|
|
|
## Usage
|
|
|
|
<!-- INSERT GENERATED DOCS START -->
|
|
|
|
### `userHomeDir` (function)
|
|
|
|
**returns:** string
|
|
|
|
### `untildifyUser` (function)
|
|
|
|
Replaces a tilde with the user's home directory
|
|
|
|
**Parameters:**
|
|
|
|
- path (`string`) - The path to untildify
|
|
|
|
**returns:** string
|
|
|
|
```tsx
|
|
UntildifyUser('~/foo'); // /home/user/foo
|
|
```
|
|
|
|
<!-- INSERT GENERATED DOCS END -->
|
|
|
|
## 🤝 Contributing
|
|
|
|
You can sponsor my work here:
|
|
|
|
https://github.com/sponsors/aminya
|
|
|
|
Pull requests, issues and feature requests are welcome.
|
|
See the [Contributing guide](https://github.com/aminya/setup-cpp/blob/master/CONTRIBUTING.md).
|