sindresorhus / root-check
Try to downgrade the permissions of a process with root privileges and block access if it fails
☆31Updated last year
Alternatives and similar repositories for root-check:
Users that are interested in root-check are comparing it to the libraries listed below
- Detect the dominant newline character of a string☆55Updated last year
- Resolve the path of a module like `require.resolve()` but from the current working directory☆68Updated 4 years ago
- ☆45Updated 2 years ago
- List of node.js builtin modules☆38Updated 9 months ago
- Break out of a promise chain☆22Updated 3 years ago
- Write a package.json file☆89Updated 6 months ago
- Import a module like with `require()` but from a given path☆85Updated 2 years ago
- If you use globs, this will make your code faster. Returns `true` if the given string looks like a glob pattern or an extglob pattern. Th…☆91Updated 2 years ago
- Fallback to a default if `process.stdout.getWindowSize` doesn't exist☆24Updated 7 months ago
- Check if something is a promise☆46Updated 3 years ago
- Strip redundant indentation and indent the string☆54Updated 3 years ago
- Tests whether one path is inside another path☆41Updated 4 years ago
- Import a globally installed module☆57Updated last year
- Get the path of the caller module☆64Updated 3 years ago
- Convert an absolute path to tilde path: /Users/sindresorhus/dev => ~/dev☆93Updated 2 years ago
- Convert a value to an array☆130Updated 3 years ago
- Check if the process is running with elevated privileges☆40Updated 3 years ago
- Resolves the full path to the bin file of a given package by inspecting the \"bin\" field in its package.json.☆30Updated 2 years ago
- An ESnext spec-compliant `Array.prototype.flat` shim/polyfill/replacement that works as far down as ES3.☆32Updated last month
- Get the auth token set for an npm registry☆35Updated 2 months ago
- Create a Vinyl file from an actual file☆41Updated 2 years ago
- Find the first file matching a given pattern in the current directory or the nearest ancestor directory.☆97Updated last year
- Create a MD5 hash with hex encoding☆45Updated last year
- Cross-browser element class manipulation☆52Updated 4 years ago
- Check if a path is a file, directory, or symlink☆78Updated 6 months ago
- Check if a value is a plain object☆102Updated 8 months ago
- Repeat the given string n times. Fastest implementation for repeating a string (2x faster than the native method)☆50Updated 3 years ago
- Let a globally installed package use a locally installed version of itself if available☆154Updated 6 months ago
- Get the file extension and MIME type from a file☆25Updated 7 years ago
- The Node.js `util.deprecate()` function with browser support☆38Updated 6 years ago