source: frontend/node_modules/is-root/readme.md

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 11 days ago

Fix frontend appearance

  • Property mode set to 100644
File size: 600 bytes
Line 
1# is-root [![Build Status](https://travis-ci.org/sindresorhus/is-root.svg?branch=master)](https://travis-ci.org/sindresorhus/is-root)
2
3> Check if the process is running as root user, for example, one started with `sudo`
4
5
6## Install
7
8```
9$ npm install is-root
10```
11
12
13## Usage
14
15```
16$ sudo node index.js
17```
18
19```js
20// index.js
21const isRoot = require('is-root');
22
23isRoot();
24//=> true
25```
26
27
28## Related
29
30- [is-elevated](https://github.com/sindresorhus/is-elevated) - Check if the process is running with elevated privileges *(cross-platform)*
31
32
33## License
34
35MIT © [Sindre Sorhus](https://sindresorhus.com)
Note: See TracBrowser for help on using the repository browser.