Find the root directory of a Node.js project or npm package
Determine an app's root path from anywhere inside the app
find the closest package.json
Check if the process is running as root user, for example, one started with `sudo`
Get the directory of globally installed packages and binaries
compute the closest common parent for file paths
Block users from running your app with root permissions
A performance conscious library for merkle root and tree calculations.
Try to downgrade the permissions of a process with root privileges and block access if it fails
Get the name of a project, from package.json, git config, or basename of the current working directory.
Try to downgrade the permissions of a process with root privileges
Get global npm prefix. Respects npmrc configs
Require From project Root tool for Node.js.
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
Find the root directory of a `git` repository
Return the filename or parent directory path of a file or directory by walking up parent directories.
Easily find the relative path to the root directory in your Metalsmith templates
Get the absolute path to the yarn global modules directory (globally installed modules).
powered by npms.io 🚀