sindresorhus / is-root
Check if the process is running as root user, for example, one started with `sudo`
☆78Updated 2 years ago
Alternatives and similar repositories for is-root:
Users that are interested in is-root are comparing it to the libraries listed below
- Check if the process is running with elevated privileges☆40Updated 3 years ago
- Get the directory of globally installed packages and binaries☆75Updated last year
- Check if a path is a file, directory, or symlink☆78Updated 6 months ago
- List of node.js builtin modules☆38Updated 10 months ago
- Object.keys shim☆45Updated 2 years ago
- Strip redundant indentation and indent the string☆54Updated 3 years ago
- Import a globally installed module☆57Updated last year
- The Node.js `util.deprecate()` function with browser support☆38Updated 6 years ago
- Get the first path that exists on disk of multiple paths☆58Updated 2 years ago
- Offers convenient getters and setters for the fs.stat()'s `mode`☆50Updated 5 years ago
- Fill in a range of numbers or letters, positive or negative, optionally passing an increment or multiplier to use.☆56Updated 6 months ago
- Wait for any promise to be fulfilled☆55Updated 2 years ago
- Get the set npm registry URL☆53Updated 2 years ago
- Convert an absolute path to tilde path: /Users/sindresorhus/dev => ~/dev☆93Updated 2 years ago
- `Promise#finally()` ponyfill - Invoked when the promise is settled regardless of outcome☆45Updated 3 years ago
- Detect the dominant newline character of a string☆55Updated last year
- Manipulate the HTTP Vary header☆61Updated 9 months ago
- destroy a stream if possible☆56Updated 5 months ago
- Returns an array filled with the specified input☆42Updated 2 years ago
- Minimal module to check if a file is executable.☆48Updated 5 months ago
- Convert directories to glob compatible strings☆44Updated 5 years ago
- Create a MD5 hash with hex encoding☆45Updated last year
- Create a Vinyl file from an actual file☆41Updated 2 years ago
- Block users from running your app with root permissions☆98Updated last year
- Check if a string matches the name of a Node.js builtin module☆58Updated 9 months ago
- Repeat a string - fast☆34Updated 3 years ago
- Add `module.exports` for Babel and TypeScript compiled code☆35Updated 9 months ago
- Check if a file path is a binary file☆44Updated 9 months ago
- The score badge service for https://npms.io☆35Updated 6 years ago
- Require global npm as a local node module.☆32Updated 2 years ago