Search results
66 packages found
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
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
Finds the first parent directory that contains a given file or directory.
Requiring or import modules/folders/files based on your root directory
A small collection of sync & async filesystem functions in Node.js.
return the closest parent or current directory that contains a package.json
Find a specific ancestor/root directory given a starting location and a search parameter
Traverses up the directory tree and returns the first module found
Allows the user to locate the root directory, of a Node application set up using npm, from a specified directory by traversing upwards until the root is located.
Find the highest package.json, starting from from the current working directory.
Find the highest directory with a package.json, starting from from the current working directory.
tiny library to help when importing CommonJS modules with paths relative to the root of the project directory
Finds the first parent directory that contains a given file or directory.
index.js made DRYer. Exports all the modules in a directory in just one sentence
Easily reference & require files from the calling module's root project directory
resolve package root and package.json paths , work on node 17 too
Get the name of a project, from package.json, git config, or basename of the current working directory.