sindresorhus / is-rootLinks
Check if the process is running as root user, for example, one started with `sudo`
☆79Updated 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☆80Updated last year
- Check if the process is running with elevated privileges☆43Updated 4 years ago
- Get the directory of globally installed packages and binaries☆77Updated 2 years ago
- Repeat the given string n times. Fastest implementation for repeating a string (2x faster than the native method)☆50Updated 3 years ago
- Detect the dominant newline character of a string☆56Updated 2 years ago
- Copy a file☆122Updated 4 months ago
- Returns an array with only the unique values from all given arrays using strict equality for comparisons.☆46Updated 3 years ago
- Get the set npm registry URL☆57Updated 8 months ago
- destroy a stream if possible☆54Updated last year
- Create a MD5 hash with hex encoding☆47Updated 2 years ago
- Recursively flatten an array or arrays. This is the fastest implementation of array flatten.☆59Updated 3 years ago
- Minimal module to check if a file is executable.☆50Updated last month
- Strip redundant indentation and indent the string☆55Updated 4 years ago
- Repeat a string - fast☆35Updated 4 years ago
- Get the first path that exists on disk of multiple paths☆62Updated 3 months ago
- Object.keys shim☆45Updated 8 months ago
- Check if something is a Node.js stream☆115Updated last year
- Determine if an object is a Buffer☆90Updated 4 years ago
- Find the first file matching a given pattern in the current directory or the nearest ancestor directory.☆98Updated last year
- List of node.js builtin modules☆37Updated 3 weeks ago
- Reliable way to to get the height and width of the terminal/console in a node.js environment.☆84Updated last year
- The Node.js `util.deprecate()` function with browser support☆38Updated 7 years ago
- Wait for any promise to be fulfilled☆56Updated 3 years ago
- Fill in a range of numbers or letters, positive or negative, optionally passing an increment or multiplier to use.☆58Updated last year
- Strip UTF-8 byte order mark (BOM) from a string☆112Updated 4 years ago
- A module which will endeavor to guess your terminal's level of color support.☆23Updated 7 years ago
- Returns the directory used by NPM for globally installed NPM packages.☆35Updated 7 years ago
- Create a Vinyl file from an actual file☆43Updated 3 years ago
- Create an array without duplicates☆74Updated 4 years ago
- A replacement for process.exit that ensures stdio are fully drained before exiting.☆67Updated 9 months ago