sindresorhus / is-root
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
- Check if the process is running with elevated privileges☆41Updated 3 years ago
- Check if a path is a file, directory, or symlink☆78Updated 7 months ago
- Wait for any promise to be fulfilled☆54Updated 2 years ago
- Fallback to a default if `process.stdout.getWindowSize` doesn't exist☆24Updated 8 months ago
- Create an array without duplicates☆70Updated 3 years ago
- Import a globally installed module☆58Updated last year
- Get the directory of globally installed packages and binaries☆75Updated last year
- Returns an array with only the unique values from all given arrays using strict equality for comparisons.☆46Updated 3 years ago
- Detect the dominant newline character of a string☆55Updated last year
- Convert an absolute path to tilde path: /Users/sindresorhus/dev => ~/dev☆93Updated 2 years ago
- Strip redundant indentation and indent the string☆54Updated 3 years ago
- Get the first path that exists on disk of multiple paths☆58Updated 2 years ago
- Extract the article title of a HTML document☆54Updated 3 years ago
- Get the set npm registry URL☆54Updated 2 years ago
- List of node.js builtin modules☆38Updated 11 months ago
- Add callbacks to requests in flight to avoid async duplication☆73Updated 9 months ago
- Manipulate the HTTP Vary header☆61Updated 10 months ago
- Return an array free of duplicate values. Very fast implementation.☆59Updated 4 years ago
- Easily build binaries☆40Updated last year
- Repeat the given string n times. Fastest implementation for repeating a string (2x faster than the native method)☆49Updated 3 years ago
- Check if your package was installed globally☆70Updated last year
- The Node.js `util.deprecate()` function with browser support☆38Updated 6 years ago
- Simple wildcard matching☆34Updated 3 years ago
- Get available v8 and Node.js flags.☆56Updated last year
- random string generator☆29Updated 5 years ago
- Returns an array filled with the specified input☆42Updated 2 years ago
- Prepare a node environment to require files with different extensions.☆48Updated 8 months ago
- Recursively flatten an array or arrays. This is the fastest implementation of array flatten.☆59Updated 3 years ago
- Node.js 0.12 path.isAbsolute() ponyfill☆43Updated 4 years ago
- The cmd-shim used in npm☆76Updated 5 months ago