sindresorhus / is-elevatedLinks
Check if the process is running with elevated privileges
☆41Updated 4 years ago
Alternatives and similar repositories for is-elevated
Users that are interested in is-elevated are comparing it to the libraries listed below
Sorting:
- Check if the process is running as root user, for example, one started with `sudo`☆78Updated 3 years ago
- Check if the process is running as administrator on Windows☆37Updated 4 years ago
- Create a MD5 hash with hex encoding☆45Updated last year
- Detect the dominant newline character of a string☆55Updated last year
- Check if a path is a file, directory, or symlink☆78Updated last year
- Get the directory of globally installed packages and binaries☆76Updated last year
- Wait for any promise to be fulfilled☆54Updated 3 years ago
- Check if a process is running☆58Updated 3 years ago
- Copy a file☆121Updated last week
- Convert an absolute path to tilde path: /Users/sindresorhus/dev => ~/dev☆94Updated 3 years ago
- Get the first path that exists on disk of multiple paths☆59Updated 2 years ago
- Strip redundant indentation and indent the string☆54Updated 4 years ago
- Import a globally installed module☆58Updated last year
- Find multiple RegExp matches in a string☆91Updated 3 years ago
- Get the set npm registry URL☆56Updated 4 months ago
- Determine if an object is a Buffer☆90Updated 4 years ago
- Import a module like with `require()` but from a given path☆85Updated 3 years ago
- Check if something is a promise☆46Updated 4 years ago
- Offers convenient getters and setters for the fs.stat()'s `mode`☆50Updated 5 years ago
- Cross-platform .zip file creation☆131Updated last year
- Get your PATH prepended with locally installed binaries☆105Updated 9 months ago
- Returns the directory used by NPM for globally installed NPM packages.☆35Updated 6 years ago
- Check if something is a Node.js stream☆112Updated 9 months ago
- Easily handle defaults for your options☆75Updated last year
- Truncate a string to a specific width in the terminal☆87Updated last year
- Reliable way to to get the height and width of the terminal/console in a node.js environment.☆84Updated last year
- Indent each line in a string☆113Updated 3 years ago
- Convert a file path to a file URL: `unicorn.jpg` → `file:///Users/sindresorhus/unicorn.jpg`☆61Updated last year
- Run promise-returning & async functions a specific number of times concurrently☆39Updated 3 years ago
- Returns an array filled with the specified input☆42Updated 3 years ago