# root-check

> Try to [downgrade the permissions](https://github.com/sindresorhus/downgrade-root) of a process with root privileges and [block access](https://github.com/sindresorhus/sudo-block) if it fails

![](https://github.com/sindresorhus/sudo-block/raw/master/screenshot.png)

## Install

```
$ npm install root-check
```

## Usage

```js
const rootCheck = require('root-check');

rootCheck();
```

## API

See the [`sudo-block` API](https://github.com/sindresorhus/sudo-block#api).

# root-check

> Try to [downgrade the permissions](https://github.com/sindresorhus/downgrade-root) of a process with root privileges and [block access](https://github.com/sindresorhus/sudo-block) if it fails

![](https://github.com/sindresorhus/sudo-block/raw/main/screenshot.png)

## Install

```
$ npm install root-check
```

## Usage

```js
const rootCheck = require('root-check');

rootCheck();
```

## API

See the [`sudo-block` API](https://github.com/sindresorhus/sudo-block#api).

Rename `master` branch to `main`
Rename `master` branch to `main`
