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 11 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
- 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 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
- Object.keys shim☆45Updated 2 months ago
- Fill in a range of numbers or letters, positive or negative, optionally passing an increment or multiplier to use.☆58Updated 11 months ago
- Returns an array filled with the specified input☆42Updated 3 years ago
- List of node.js builtin modules☆38Updated last year
- Check if something is a Node.js stream☆112Updated 8 months ago
- Returns an array with only the unique values from all given arrays using strict equality for comparisons.☆47Updated 3 years ago
- Replaces a file extension with another one.☆46Updated 2 years ago
- Create an array without duplicates☆71Updated 4 years ago
- Check if a string matches the name of a Node.js builtin module☆59Updated 4 months ago
- Wait for any promise to be fulfilled☆54Updated 3 years ago
- Recursively flatten an array or arrays. This is the fastest implementation of array flatten.☆59Updated 3 years ago
- Import a globally installed module☆58Updated last year
- Add callbacks to requests in flight to avoid async duplication☆73Updated last year
- Get the first path that exists on disk of multiple paths☆59Updated 2 years ago
- Node.js 0.12 path.isAbsolute() ponyfill☆43Updated 4 years ago
- Create a Vinyl file from an actual file☆41Updated 2 years ago
- Copy a file☆121Updated last year
- Get the set npm registry URL☆55Updated 2 months ago
- Determine if an object is a Buffer☆90Updated 3 years ago
- destroy a stream if possible☆54Updated 10 months ago
- Returns the directory used by NPM for globally installed NPM packages.☆35Updated 6 years ago
- Import a module like with `require()` but from a given path☆85Updated 3 years ago
- Fast, minimal glob matcher for node.js. Similar to micromatch, minimatch and multimatch, but without support for extended globs (extglobs…☆97Updated 2 years ago