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 the process is running with elevated privileges☆43Updated 4 years ago
- Check if a path is a file, directory, or symlink☆80Updated last year
- 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 4 years ago
- Object.keys shim☆46Updated last month
- Create an array without duplicates☆74Updated 4 years ago
- Get the set npm registry URL☆57Updated 9 months ago
- Returns an array filled with the specified input☆43Updated 3 years ago
- List of node.js builtin modules☆37Updated 2 months ago
- Check if the character represented by a given Unicode code point is fullwidth☆51Updated 5 months ago
- Copy a file☆123Updated 5 months ago
- Wait for any promise to be fulfilled☆56Updated 3 years ago
- Determine if an object is a Buffer☆90Updated 4 years ago
- Detect the dominant newline character of a string☆56Updated 2 years ago
- Make your terminal beep☆135Updated 4 months ago
- Recursively flatten an array or arrays. This is the fastest implementation of array flatten.☆59Updated 4 years ago
- Get the first path that exists on disk of multiple paths☆62Updated 4 months ago
- Returns an array with only the unique values from all given arrays using strict equality for comparisons.☆45Updated 4 years ago
- Create a Vinyl file from an actual file☆43Updated 3 years ago
- Create a MD5 hash with hex encoding☆48Updated 2 years ago
- Node.js 0.12 path.isAbsolute() ponyfill☆43Updated 5 years ago
- destroy a stream if possible☆55Updated last year
- Minimal module to check if a file is executable.☆51Updated 3 months ago
- Get the visual width of the widest line in a string - the number of columns required to display it☆40Updated last week
- Check if something is a Node.js stream☆115Updated last year
- The Node.js `util.deprecate()` function with browser support☆38Updated 7 years ago
- Import a globally installed module☆59Updated 2 years ago
- Strip redundant indentation and indent the string☆55Updated 4 years ago
- Fill in a range of numbers or letters, positive or negative, optionally passing an increment or multiplier to use.☆57Updated last year
- Add callbacks to requests in flight to avoid async duplication☆75Updated last year