sindresorhus / is-rootLinks
Check if the process is running as root user, for example, one started with `sudo`
☆78Updated 3 years ago
Alternatives and similar repositories for is-root
Users that are interested in is-root are comparing it to the libraries listed below
Sorting:
- Check if the process is running with elevated privileges☆42Updated 4 years ago
- Check if a path is a file, directory, or symlink☆79Updated last year
- Get the directory of globally installed packages and binaries☆76Updated 2 years ago
- Create an array without duplicates☆73Updated 4 years ago
- Returns an array filled with the specified input☆43Updated 3 years ago
- Check if something is a Node.js stream☆114Updated last year
- Repeat the given string n times. Fastest implementation for repeating a string (2x faster than the native method)☆50Updated 3 years ago
- Returns an array with only the unique values from all given arrays using strict equality for comparisons.☆46Updated 3 years ago
- Wait for any promise to be fulfilled☆56Updated 3 years ago
- Detect the dominant newline character of a string☆56Updated 2 years ago
- Recursively flatten an array or arrays. This is the fastest implementation of array flatten.☆59Updated 3 years ago
- Get the set npm registry URL☆56Updated 6 months ago
- destroy a stream if possible☆54Updated last year
- Get the first path that exists on disk of multiple paths☆60Updated last month
- Create a Vinyl file from an actual file☆42Updated 2 years ago
- Import a globally installed module☆57Updated last year
- Add callbacks to requests in flight to avoid async duplication☆74Updated last year
- Lax URL parsing with support for protocol-less URLs and IPs☆54Updated 2 months ago
- Minimal module to check if a file is executable.☆49Updated 2 weeks ago
- Add `module.exports` for Babel and TypeScript compiled code☆35Updated last year
- `Promise#finally()` ponyfill - Invoked when the promise is settled regardless of outcome☆46Updated 4 years ago
- Check if something is a promise☆46Updated 4 years ago
- Reliable way to to get the height and width of the terminal/console in a node.js environment.☆84Updated last year
- Get the user agent of a recent Chrome version to pretend to be a browser in network requests☆36Updated 2 years ago
- Strip redundant indentation and indent the string☆54Updated 4 years ago
- Create a MD5 hash with hex encoding☆46Updated 2 years ago
- Convert directories to glob compatible strings☆44Updated 6 years ago
- Returns the directory used by NPM for globally installed NPM packages.☆35Updated 6 years ago
- Object.keys shim☆45Updated 6 months ago
- Determine if an object is a Buffer☆90Updated 4 years ago