Find the root directory of a Node.js project or npm package
Determine an app's root path from anywhere inside the app
Check if the process is running as root user, for example, one started with `sudo`
find the closest package.json
Get the directory of globally installed packages and binaries
compute the closest common parent for file paths
A performance conscious library for merkle root and tree calculations.
Block users from running your app with root permissions
Get the name of a project, from package.json, git config, or basename of the current working directory.
Get global npm prefix. Respects npmrc configs
Try to downgrade the permissions of a process with root privileges and block access if it fails
Try to downgrade the permissions of a process with root privileges
Require From project Root tool for Node.js.
Check if the process is running with elevated privileges
Babel plugin to transform project relative import paths to file relative import paths.
Find the root directory of a Node.js project from a given path
Check if the process is running as Administrator on Windows
Find the root directory of a `git` repository
Get the absolute path to the yarn global modules directory (globally installed modules).
powered by npms.io 🚀