sindresorhus / is-rootLinks
Check if the process is running as root user, for example, one started with `sudo`
☆78Updated 2 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 10 months ago
- Get the directory of globally installed packages and binaries☆76Updated last year
- Check if the process is running with elevated privileges☆41Updated 3 years ago
- Get the first path that exists on disk of multiple paths☆58Updated 2 years ago
- Strip redundant indentation and indent the string☆54Updated 4 years ago
- Simple wildcard matching☆34Updated 3 years ago
- Check if a file path is a binary file☆45Updated last year
- Wait for any promise to be fulfilled☆54Updated 2 years ago
- Object.keys shim☆45Updated last month
- Get the set npm registry URL☆55Updated 2 months ago
- Repeat the given string n times. Fastest implementation for repeating a string (2x faster than the native method)☆49Updated 3 years ago
- destroy a stream if possible☆54Updated 9 months ago
- Check if a Buffer/Uint8Array is a JPEG image☆26Updated 2 years ago
- List of node.js builtin modules☆38Updated last year
- Create an array without duplicates☆71Updated 4 years ago
- Create a Vinyl file from an actual file☆41Updated 2 years ago
- Import a globally installed module☆58Updated last year
- Returns an array filled with the specified input☆42Updated 2 years ago
- The Node.js `util.deprecate()` function with browser support☆38Updated 6 years ago
- Detect the dominant newline character of a string☆55Updated last year
- Repeat a string - fast☆34Updated 4 years ago
- Import a module like with `require()` but from a given path☆85Updated 2 years ago
- Resolve the path of a globally installed module☆41Updated last year
- `Promise#finally()` ponyfill - Invoked when the promise is settled regardless of outcome☆45Updated 4 years ago
- Manipulate the HTTP Vary header☆61Updated 2 weeks ago
- Returns an array with only the unique values from all given arrays using strict equality for comparisons.☆47Updated 3 years ago
- Strip the final newline character from a string/buffer☆36Updated 7 months ago
- Check if something is a Node.js stream☆112Updated 7 months ago
- Convert directories to glob compatible strings☆44Updated 5 years ago
- Fallback to a default if `process.stdout.getWindowSize` doesn't exist☆24Updated 11 months ago