Search results
67 packages found
compute the closest common parent for file paths
Find the root directory of a Node.js project or npm package
Get the directory of globally installed packages and binaries
Computes the longest prefix string that is common to each path, excluding the base component
Finds the first parent directory that contains a given file or directory.
Simple module to infer the root directory of the currently running node application
A small collection of sync & async filesystem functions in Node.js.
One Package to rule them all, finds your root-dir, monorepo, package manager or tsconfig.json
- anolilab
- find
- find-cache
- find-cache-dir
- find-cache-directory
- find-monorepo-root
- find-up-pkg
- find-package-manager
- get-tsconfig
- mono-repo
- monorepo
- package
- package-json
- package-manager
- View more
Requiring or import modules/folders/files based on your root directory
return the closest parent or current directory that contains a package.json
tiny library to help when importing CommonJS modules with paths relative to the root of the project directory
Traverses up the directory tree and returns the first module found
Find the highest directory with a package.json, starting from from the current working directory.
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.
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
Get root folders of git, svn, mercurial, nodejs node_modules / package.json / package-lock.json, and nodejs .jscache folder
- path
- paths
- npm
- yarn
- nodemodules
- node-modules
- package
- packages
- pasckage.json
- package-lock.json
- bin
- config
- root
- resolve
- View more
Get the name of a project, from package.json, git config, or basename of the current working directory.
Easily reference & require files from the calling module's root project directory