Search results
68 packages found
Get the absolute path to the global yarn config directory.
- bin
- binaries
- binary
- conf
- config
- directories
- directory
- dirname
- global
- installed
- links
- module
- modules
- node
- View more
Finds the longest common parent directory path in an array of file path strings or custom objects. Also returns sub and base parts for each path.
Find the root directory of a Node.js project from a given path
A small collection of sync & async filesystem functions in Node.js.
Find the root directory of a monorepo using Yarn workspaces, Bolt, Lerna or pnpm
- monorepo
- monorepo-root
- root
- workspaces
- yarn-monorepo
- yarn-workspaces
- yarn
- lerna-monorepo
- lerna-workspaces
- lerna
- pnpm-workspaces
- pnpm-monorepo
- pnpm
- Bolt
Get the absolute path to the yarn global modules directory (globally installed modules).
- bin
- binaries
- binary
- conf
- config
- directories
- directory
- dirname
- global
- installed
- links
- module
- modules
- node
- View more
Get the closest parent folder containing a package.json file
- path
- root
- root-path
- boilerplate
- config
- setup
- directory-structure
- file
- directory
- load
- import
- require
- convenience
- low-level
Find the closest `.git` directory
Easily find the relative path to the root directory in your Metalsmith templates
Get the node modules directory, a.k.a. npm root. Global or local.
Traverses up the directory tree and returns the first module found
Requiring or import modules/folders/files based on your root directory
Get the absolute path to the yarn global links directory (globally symlinked modules).
- bin
- binaries
- binary
- conf
- config
- directories
- directory
- dirname
- global
- installed
- links
- module
- modules
- node
- View more
NPM package for reading information about absolute paths, which can also be imported/exported via JSON. Both sync and async classes are provided.
Find the highest directory with a package.json, starting from from the current working directory.
find the project root
Find the highest package.json, starting from from the current working directory.
return the closest parent or current directory that contains a package.json
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.
🔼 Provides a way to check if the given path is the root drive/directory. ⛔