Search results
437 packages found
Sort by: Default
- Default
- Most downloaded this week
- Most downloaded this month
- Most dependents
- Recently published
Determine an app's root path from anywhere inside the app
Computes the longest prefix string that is common to each path, excluding the base component
Returns an object with the (non-glob) base path and the actual pattern.
Check if a path is root
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.
Get the root path of an Electron Application
Get the root of a posix or windows filepath.
Regular expression for getting the root of a posix or windows filepath.
Normalize paths, joined with project's root path
For use in tests only! require() using a relative path from the root directory of the present module
Find the closest .git containing path
A helper class to build file path. Useful in application, to provide path reference to whole app
Find the root directory of a Node.js project or npm package
compute the closest common parent for file paths
Find the root directory of a Node.js project from a given path
Find the root path of a monorepo using various strategies.
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
Simple module helps you access your application's root path from anywhere in the application without resorting to relative paths like require("../../path").
Guess the root path of a project
npm install --save rootrequire # then `var root = require('rootrequire'), myLib = require(root + 'path/to/lib.js');`