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 a path is a file, directory, or symlink☆78Updated last year
- Check if the process is running with elevated privileges☆41Updated 4 years ago
- Detect the dominant newline character of a string☆55Updated last year
- Get the directory of globally installed packages and binaries☆76Updated last year
- Returns an array with only the unique values from all given arrays using strict equality for comparisons.☆46Updated 3 years ago
- Returns an array filled with the specified input☆42Updated 3 years ago
- Get the first path that exists on disk of multiple paths☆59Updated 2 years ago
- Create an array without duplicates☆71Updated 4 years ago
- Repeat the given string n times. Fastest implementation for repeating a string (2x faster than the native method)☆50Updated 3 years ago
- Determine if an object is a Buffer☆90Updated 4 years ago
- Get the set npm registry URL☆56Updated 4 months ago
- Create a Vinyl file from an actual file☆41Updated 2 years ago
- Strip redundant indentation and indent the string☆54Updated 4 years ago
- Wait for any promise to be fulfilled☆54Updated 3 years ago
- Repeat a string - fast☆34Updated 4 years ago
- Recursively flatten an array or arrays. This is the fastest implementation of array flatten.☆59Updated 3 years ago
- The Node.js `util.deprecate()` function with browser support☆38Updated 6 years ago
- Node.js 0.12 path.isAbsolute() ponyfill☆43Updated 4 years ago
- Check if a value is an object☆40Updated 4 years ago
- Object.keys shim☆45Updated 4 months ago
- Check if something is a Node.js stream☆112Updated 9 months ago
- Replaces a file extension with another one.☆46Updated 2 years ago
- Minimal module to check if a file is executable.☆49Updated last year
- Copy a file☆121Updated last week
- `Promise#finally()` ponyfill - Invoked when the promise is settled regardless of outcome☆45Updated 4 years ago
- Resolve the path of a globally installed module☆41Updated last year
- Add callbacks to requests in flight to avoid async duplication☆74Updated last year
- Reliable way to to get the height and width of the terminal/console in a node.js environment.☆84Updated last year
- Look up environment settings specific to different operating systems.☆137Updated 4 years ago
- Returns the directory used by NPM for globally installed NPM packages.☆35Updated 6 years ago