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
- Get the directory of globally installed packages and binaries☆75Updated last year
- Check if a path is a file, directory, or symlink☆78Updated 8 months ago
- Check if the process is running with elevated privileges☆41Updated 3 years ago
- Get the set npm registry URL☆54Updated this week
- The Node.js `util.deprecate()` function with browser support☆38Updated 6 years ago
- Repeat the given string n times. Fastest implementation for repeating a string (2x faster than the native method)☆49Updated 3 years ago
- Create a MD5 hash with hex encoding☆45Updated last year
- Convert directories to glob compatible strings☆44Updated 5 years ago
- Get the first path that exists on disk of multiple paths☆58Updated 2 years ago
- Extract the article title of a HTML document☆54Updated 3 years ago
- Create an array without duplicates☆71Updated 3 years ago
- Strip redundant indentation and indent the string☆54Updated 3 years ago
- Easily handle defaults for your options☆74Updated last year
- Fallback to a default if `process.stdout.getWindowSize` doesn't exist☆24Updated 9 months ago
- Import a globally installed module☆58Updated last year
- Get the path of the parent module☆77Updated last year
- destroy a stream if possible☆56Updated 7 months ago
- Object.keys shim☆45Updated 2 years ago
- Repeat a string - fast☆34Updated 3 years ago
- Get the name of a Windows version from the release number: 5.1.2600 → XP☆43Updated 10 months ago
- List of node.js builtin modules☆38Updated last year
- Returns an array filled with the specified input☆42Updated 2 years ago
- The cmd-shim used in npm☆77Updated this week
- Detect the dominant newline character of a string☆55Updated last year
- Check if your package was installed globally☆70Updated last year
- Check if something is a Node.js stream☆110Updated 5 months ago
- Returns an array with only the unique values from all given arrays using strict equality for comparisons.☆46Updated 3 years ago
- Check if a string matches the name of a Node.js builtin module☆59Updated last month
- timers module for browserify☆24Updated 3 months ago
- Resolve the path of a globally installed module☆41Updated last year