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☆41Updated 3 years ago
- Check if a path is a file, directory, or symlink☆78Updated 7 months ago
- Get the directory of globally installed packages and binaries☆75Updated last year
- Import a globally installed module☆57Updated last year
- Strip redundant indentation and indent the string☆54Updated 3 years ago
- Get the first path that exists on disk of multiple paths☆58Updated 2 years ago
- Get the set npm registry URL☆53Updated 2 years ago
- List of node.js builtin modules☆38Updated 11 months ago
- Check if a file path is a binary file☆44Updated 10 months ago
- Create an array without duplicates☆70Updated 3 years ago
- The Node.js `util.deprecate()` function with browser support☆38Updated 6 years ago
- A replacement for process.exit that ensures stdio are fully drained before exiting.☆66Updated last week
- Object.keys shim☆45Updated 2 years ago
- Returns an array filled with the specified input☆42Updated 2 years ago
- Detect the dominant newline character of a string☆55Updated last year
- Fill in a range of numbers or letters, positive or negative, optionally passing an increment or multiplier to use.☆58Updated 7 months ago
- Check if a Buffer/Uint8Array is a JPEG image☆26Updated 2 years ago
- Create a MD5 hash with hex encoding☆45Updated last year
- Fallback to a default if `process.stdout.getWindowSize` doesn't exist☆24Updated 8 months ago
- Node.js 0.12 path.isAbsolute() ponyfill☆43Updated 4 years ago
- The cmd-shim used in npm☆76Updated 5 months ago
- Wait for any promise to be fulfilled☆54Updated 2 years ago
- Prepare a node environment to require files with different extensions.☆48Updated 8 months ago
- Repeat a string - fast☆34Updated 3 years ago
- Get available v8 and Node.js flags.☆56Updated last year
- Find the first file matching a given pattern in the current directory or the nearest ancestor directory.☆98Updated last year
- Create a Vinyl file from an actual file☆41Updated 2 years ago
- The score badge service for https://npms.io☆35Updated 6 years ago
- Check if your package was installed globally☆70Updated last year
- Functions that surround a string with ansicolor codes so it prints in color.☆27Updated 11 years ago