Find the root directory of a Node.js project or npm package
find the closest package.json
Determine an app's root path from anywhere inside the app
Get the directory of globally installed packages and binaries
compute the closest common parent for file paths
Check if the process is running as root user, for example, one started with `sudo`
Finds the first parent directory that contains a given file or directory.
Block users from running your app with root permissions
A micro-library for collecting stylesheet data from link and style nodes
recursively find the closest .git/
Computes the longest prefix string that is common to each path, excluding the base component
A performance conscious library for merkle root and tree calculations.
Loads root and intermediate certificates from the CCADB and registers them in the global HTTPS module agent
Simple module to infer the root directory of the currently running node application
Perform tasks relative to your package.json, such as requiring
A module for finding the root of a project by looking at the contents of package.json file up the file hierarchy.
Regular expression for getting the root of a posix or windows filepath.
Require From project Root tool for Node.js.
Path aliases, root path, module loader
powered by npms.io 🚀