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`
find the closest package.json
compute the closest common parent for file paths
Block users from running your app with root permissions
A performance conscious library for merkle root and tree calculations.
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.
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
Enables to find the root package in the package hierarchy, and retrieve information about it
search up directories
Check if the process is running with elevated privileges
return the closest parent or current directory that contains a package.json
Check whether a CSS selector is the :root
Import files from the current package by name
Relativize absolute paths in HTML and CSS
powered by npms.io 🚀