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
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.
Computes the longest prefix string that is common to each path, excluding the base component
recursively find the closest .git/
A micro-library for collecting stylesheet data from link and style nodes
Traverses up the directory tree and returns the first module found
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
Require From project Root tool for Node.js.
A module for finding the root of a project by looking at the contents of package.json file up the file hierarchy.
Block users from running your app with root permissions
Regular expression for getting the root of a posix or windows filepath.
Enables read of windows root certificates using ffi, and patching of node to use them
powered by npms.io 🚀