sindresorhus / is-root
Check if the process is running as root user, for example, one started with `sudo`
☆79Updated 2 years ago
Related projects ⓘ
Alternatives and complementary repositories for is-root
- Check if the process is running with elevated privileges☆41Updated 3 years ago
- Easily handle defaults for your options☆73Updated last year
- Strip redundant indentation and indent the string☆54Updated 3 years ago
- Check if a path is a file, directory, or symlink☆75Updated 3 months ago
- Detect the dominant newline character of a string☆55Updated last year
- Import a globally installed module☆57Updated 10 months ago
- Object.keys shim☆45Updated 2 years ago
- Get the directory of globally installed packages and binaries☆75Updated last year
- Recursively flatten an array or arrays. This is the fastest implementation of array flatten.☆60Updated 2 years ago
- Check if a file path is a binary file☆42Updated 6 months ago
- The cmd-shim used in npm☆76Updated last month
- Create a Vinyl file from an actual file☆41Updated last year
- Minimal module to check if a file is executable.☆48Updated 2 months ago
- Get the first path that exists on disk of multiple paths☆58Updated last year
- Returns an array filled with the specified input☆43Updated 2 years ago
- Fill in a range of numbers or letters, positive or negative, optionally passing an increment or multiplier to use.☆54Updated 3 months ago
- Check if your package was installed globally☆70Updated last year
- The Node.js `util.deprecate()` function with browser support☆38Updated 5 years ago
- Node.js 0.12 path.isAbsolute() ponyfill☆43Updated 3 years ago
- Extract the article title of a HTML document☆54Updated 2 years ago
- Reliable way to to get the height and width of the terminal/console in a node.js environment.☆82Updated 2 months ago
- Easily build binaries☆38Updated last year
- Offers convenient getters and setters for the fs.stat()'s `mode`☆50Updated 5 years ago
- Returns an array with only the unique values from all given arrays using strict equality for comparisons.☆46Updated 2 years ago
- ☆45Updated 2 years ago
- `Promise#finally()` ponyfill - Invoked when the promise is settled regardless of outcome☆45Updated 3 years ago
- Repeat a string - fast☆34Updated 3 years ago
- Repeat the given string n times. Fastest implementation for repeating a string (2x faster than the native method)☆49Updated 2 years ago
- Get the set npm registry URL☆53Updated 2 years ago
- Check if something is a Node.js stream☆111Updated last week