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 a path is a file, directory, or symlink☆78Updated 9 months ago
- Check if the process is running with elevated privileges☆41Updated 3 years ago
- Get the directory of globally installed packages and binaries☆75Updated last year
- Import a globally installed module☆58Updated last year
- Strip redundant indentation and indent the string☆54Updated 4 years ago
- Object.keys shim☆45Updated 2 weeks ago
- Repeat the given string n times. Fastest implementation for repeating a string (2x faster than the native method)☆49Updated 3 years ago
- Get the first path that exists on disk of multiple paths☆58Updated 2 years ago
- Create an array without duplicates☆71Updated 4 years ago
- The Node.js `util.deprecate()` function with browser support☆38Updated 6 years ago
- Wait for any promise to be fulfilled☆54Updated 2 years ago
- Recursively flatten an array or arrays. This is the fastest implementation of array flatten.☆59Updated 3 years ago
- Detect the dominant newline character of a string☆55Updated last year
- Convert directories to glob compatible strings☆44Updated 5 years ago
- Fallback to a default if `process.stdout.getWindowSize` doesn't exist☆24Updated 10 months ago
- Check if a file path is a binary file☆44Updated last year
- Easily handle defaults for your options☆74Updated last year
- List of node.js builtin modules☆38Updated last year
- Get the set npm registry URL☆55Updated 2 weeks ago
- destroy a stream if possible☆56Updated 8 months ago
- Returns an array filled with the specified input☆42Updated 2 years ago
- A replacement for process.exit that ensures stdio are fully drained before exiting.☆66Updated 2 months ago
- Check if a Buffer/Uint8Array is a JPEG image☆26Updated 2 years ago
- Check if something is a promise☆46Updated 4 years ago
- Minimal module to check if a file is executable.☆48Updated 8 months ago
- Extract the article title of a HTML document☆54Updated 3 years ago
- Check if something is a Node.js stream☆111Updated 6 months ago
- Convert an absolute path to tilde path: /Users/sindresorhus/dev => ~/dev☆93Updated 2 years ago
- Node.js 0.12 path.isAbsolute() ponyfill☆43Updated 4 years ago
- ECMAScript "ToPrimitive" algorithm. Provides ES5 and ES6/ES2015 versions.☆22Updated 5 months ago