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 3 years ago
- Get the directory of globally installed packages and binaries☆76Updated last year
- Create an array without duplicates☆71Updated 4 years ago
- Add callbacks to requests in flight to avoid async duplication☆73Updated last year
- Check if something is a Node.js stream☆112Updated 9 months ago
- Object.keys shim☆45Updated 3 months ago
- Replaces a file extension with another one.☆46Updated 2 years ago
- destroy a stream if possible☆54Updated 10 months ago
- Detect the dominant newline character of a string☆55Updated last year
- Returns an array with only the unique values from all given arrays using strict equality for comparisons.☆46Updated 3 years ago
- Minimal module to check if a file is executable.☆49Updated 11 months ago
- Determine if an object is a Buffer☆90Updated 3 years ago
- Returns the directory used by NPM for globally installed NPM packages.☆35Updated 6 years ago
- Copy a file☆121Updated last year
- Wait for any promise to be fulfilled☆54Updated 3 years ago
- Create a Vinyl file from an actual file☆41Updated 2 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
- Import a globally installed module☆58Updated last year
- Reliable way to to get the height and width of the terminal/console in a node.js environment.☆84Updated 11 months ago
- Fill in a range of numbers or letters, positive or negative, optionally passing an increment or multiplier to use.☆58Updated last year
- Convert an absolute path to tilde path: /Users/sindresorhus/dev => ~/dev☆94Updated 3 years ago
- Node.js 0.12 path.isAbsolute() ponyfill☆43Updated 4 years ago
- The Node.js `util.deprecate()` function with browser support☆38Updated 6 years ago
- Recursively flatten an array or arrays. This is the fastest implementation of array flatten.☆59Updated 3 years ago
- List of node.js builtin modules☆38Updated last year
- Repeat the given string n times. Fastest implementation for repeating a string (2x faster than the native method)☆50Updated 3 years ago
- Strip redundant indentation and indent the string☆54Updated 4 years ago
- url.parse() with support for protocol-less URLs & IPs☆53Updated 3 years ago