mirror of https://github.com/aminya/setup-cpp
42 lines
1005 B
Markdown
42 lines
1005 B
Markdown
<h1 align="center">user-access</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>
|
|
|
|
> Give user access to the given path
|
|
|
|
## Install
|
|
|
|
```sh
|
|
npm install --save user-access
|
|
```
|
|
|
|
## Usage
|
|
|
|
<!-- INSERT GENERATED DOCS START -->
|
|
|
|
### `grantUserWriteAccess` (function)
|
|
|
|
Give the user access to the given path and its sub-directories. It changes the owner to the SUDO_USER. This allows
|
|
the user to use the folder without sudo
|
|
|
|
**Parameters:**
|
|
|
|
- path (`string`) - The path to give the user access to
|
|
|
|
**returns:** Promise<void>
|
|
|
|
<!-- 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).
|