mirror of
https://github.com/aminya/setup-cpp
synced 2024-11-30 21:22:30 +08:00
42 lines
990 B
Markdown
42 lines
990 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 -->
|
|
|
|
### `giveUserAccess` (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:** 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).
|