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
- Strip redundant indentation and indent the string☆54Updated 3 years ago
- Import a globally installed module☆57Updated last year
- Fallback to a default if `process.stdout.getWindowSize` doesn't exist☆24Updated 8 months ago
- Detect the dominant newline character of a string☆55Updated last year
- Get the first path that exists on disk of multiple paths☆58Updated 2 years ago
- Returns an array with only the unique values from all given arrays using strict equality for comparisons.☆46Updated 3 years ago
- Object.keys shim☆45Updated 2 years ago
- Create a Vinyl file from an actual file☆41Updated 2 years ago
- The Node.js `util.deprecate()` function with browser support☆38Updated 6 years ago
- Repeat a string - fast☆34Updated 3 years ago
- Check if a file path is a binary file☆44Updated 10 months 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
- Create an array without duplicates☆70Updated 3 years ago
- Check if something is a Node.js stream☆110Updated 4 months ago
- Repeat the given string n times. Fastest implementation for repeating a string (2x faster than the native method)☆49Updated 3 years ago
- Check if argv has a specific flag☆94Updated 3 years ago
- Extract the article title of a HTML document☆54Updated 3 years ago
- Check if a Buffer/Uint8Array is a JPEG image☆26Updated 2 years ago
- List of node.js builtin modules☆38Updated 11 months ago
- Easily handle defaults for your options☆73Updated last year
- Returns an array filled with the specified input☆42Updated 2 years ago
- Returns the directory used by NPM for globally installed NPM packages.☆35Updated 6 years ago
- Import a module like with `require()` but from a given path☆85Updated 2 years ago
- Resolve the path of a globally installed module☆41Updated last year
- Add `module.exports` for Babel and TypeScript compiled code☆35Updated 10 months ago
- Reliable way to to get the height and width of the terminal/console in a node.js environment.☆83Updated 7 months ago