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☆41Updated 4 years ago
- Check if a path is a file, directory, or symlink☆78Updated last year
- 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 first path that exists on disk of multiple paths☆59Updated 2 years ago
- Create a Vinyl file from an actual file☆41Updated 2 years ago
- Get the directory of globally installed packages and binaries☆76Updated last year
- Create an array without duplicates☆72Updated 4 years ago
- Detect the dominant newline character of a string☆55Updated last year
- Get the set npm registry URL☆56Updated 4 months ago
- Object.keys shim☆45Updated 4 months ago
- Repeat a string - fast☆34Updated 4 years ago
- Fill in a range of numbers or letters, positive or negative, optionally passing an increment or multiplier to use.☆58Updated last year
- Add callbacks to requests in flight to avoid async duplication☆74Updated last year
- Returns an array filled with the specified input☆42Updated 3 years ago
- The Node.js `util.deprecate()` function with browser support☆38Updated 6 years ago
- Reliable way to to get the height and width of the terminal/console in a node.js environment.☆84Updated last year
- Copy a file☆121Updated 3 weeks ago
- Returns an array with only the unique values from all given arrays using strict equality for comparisons.☆46Updated 3 years ago
- Check if something is a Node.js stream☆112Updated 10 months ago
- Check if something is a promise☆46Updated 4 years ago
- Node.js 0.12 path.isAbsolute() ponyfill☆43Updated 4 years ago
- Lax URL parsing with support for protocol-less URLs and IPs☆53Updated this week
- Strip redundant indentation and indent the string☆54Updated 4 years ago
- Get the visual width of the widest line in a string - the number of columns required to display it☆38Updated last year
- destroy a stream if possible☆54Updated last year
- Find the first file matching a given pattern in the current directory or the nearest ancestor directory.☆98Updated last year
- Returns the directory used by NPM for globally installed NPM packages.☆35Updated 6 years ago
- Check whether a request can be retried based on the `error.code`☆81Updated 3 years ago
- Create a MD5 hash with hex encoding☆45Updated last year