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☆42Updated 4 years ago
- Check if something is a Node.js stream☆115Updated last year
- Create an array without duplicates☆74Updated 4 years ago
- Get the directory of globally installed packages and binaries☆77Updated 2 years ago
- Get the first path that exists on disk of multiple paths☆61Updated 2 months ago
- Object.keys shim☆45Updated 7 months ago
- Detect the dominant newline character of a string☆56Updated 2 years ago
- Recursively flatten an array or arrays. This is the fastest implementation of array flatten.☆59Updated 3 years ago
- Check if the character represented by a given Unicode code point is fullwidth☆50Updated 3 months ago
- Returns an array with only the unique values from all given arrays using strict equality for comparisons.☆46Updated 3 years ago
- Create a Vinyl file from an actual file☆43Updated 2 years ago
- Copy a file☆122Updated 3 months ago
- Repeat the given string n times. Fastest implementation for repeating a string (2x faster than the native method)☆50Updated 3 years ago
- Wait for any promise to be fulfilled☆56Updated 3 years ago
- Returns an array filled with the specified input☆43Updated 3 years ago
- Convert an absolute path to tilde path: /Users/sindresorhus/dev => ~/dev☆95Updated 3 years ago
- Get the set npm registry URL☆57Updated 7 months ago
- Reliable way to to get the height and width of the terminal/console in a node.js environment.☆84Updated last year
- Strip redundant indentation and indent the string☆54Updated 4 years ago
- destroy a stream if possible☆54Updated last year
- Import a module like with `require()` but from a given path☆85Updated 3 years ago
- Repeat a string - fast☆35Updated 4 years ago
- Make your terminal beep☆134Updated 2 months ago
- Import a globally installed module☆58Updated last year
- Add callbacks to requests in flight to avoid async duplication☆74Updated last year
- Node.js 0.12 path.isAbsolute() ponyfill☆43Updated 4 years ago
- A module which will endeavor to guess your terminal's level of color support.☆23Updated 7 years ago
- Determine if an object is a Buffer☆90Updated 4 years ago
- List of node.js builtin modules☆37Updated last week