Find the root directory of a Node.js project or npm package
find the closest package.json
compute the closest common parent for file paths
Get the directory of globally installed packages and binaries
Determine an app's root path from anywhere inside the app
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.
A micro-library for collecting stylesheet data from link and style nodes
recursively find the closest .git/
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
Computes the longest prefix string that is common to each path, excluding the base component
Simple module to infer the root directory of the currently running node application
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
Require From project Root tool for Node.js.
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 🚀