pkg-dir
Find the root directory of a Node.js project or npm package
Find the root directory of a Node.js project or npm package
compute the closest common parent for file paths
Get the directory of globally installed packages and binaries
Check if the process is running as root user, for example, one started with `sudo`
find the closest package.json
Returns an object with the (non-glob) base path and the actual pattern.
Regular expression for getting the root of a posix or windows filepath.
Get the root of a posix or windows filepath.
Determine an app's root path from anywhere inside the app
Simple module to infer the root directory of the currently running node application
Finds the first parent directory that contains a given file or directory.
Computes the longest prefix string that is common to each path, excluding the base component
Block users from running your app with root permissions
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
Get global npm prefix. Respects npmrc configs
Gatsby plugin to set Webpack to resolve import root
A performance conscious library for merkle root and tree calculations.
Get the name of a project, from package.json, git config, or basename of the current working directory.
recursively find the closest .git/