Determine an app's root path from anywhere inside the app
Find the root directory of a Node.js project or npm package
Check if the process is running as root user, for example, one started with `sudo`
compute the closest common parent for file paths
find the closest package.json
Block users from running your app with root permissions
Require From project Root tool for Node.js.
Get the name of a project, from package.json, git config, or basename of the current working directory.
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 global npm prefix. Respects npmrc configs
Try to downgrade the permissions of a process with root privileges
Enables to find the root package in the package hierarchy, and retrieve information about it
Babel plugin to transform project relative import paths to file relative import paths.
search up directories
Check if the process is running with elevated privileges
return the closest parent or current directory that contains a package.json
Utility for finding dominant file.
powered by npms.io 🚀