Search results

437 packages found

Determine an app's root path from anywhere inside the app

published version 3.1.0, 2 years ago2712 dependents licensed under $MIT
14,548,563

Computes the longest prefix string that is common to each path, excluding the base component

published version 3.0.0, 5 years ago178 dependents licensed under $ISC
34,414,435

Returns an object with the (non-glob) base path and the actual pattern.

published version 0.3.0, 9 years ago241 dependents licensed under $MIT
15,100,711

Check if a path is root

published version 0.1.0, 9 years ago22 dependents licensed under $MIT
11,385

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.

published version 1.0.1, 5 years ago6 dependents licensed under $MIT
3,984

Get the root path of an Electron Application

published version 1.1.0, 2 years ago14 dependents licensed under $MIT
5,284

Get the root of a posix or windows filepath.

published version 0.1.1, 9 years ago54 dependents licensed under $MIT
23,595,851

Regular expression for getting the root of a posix or windows filepath.

published version 0.1.2, 9 years ago52 dependents licensed under $MIT
23,599,542

Normalize paths, joined with project's root path

published version 0.2.1, 7 years ago8 dependents licensed under $MIT
1,421

For use in tests only! require() using a relative path from the root directory of the present module

published version 0.3.1, 11 years ago57 dependents licensed under $MIT
27,073

Find the closest .git containing path

published version 1.5.14, 5 months ago5 dependents licensed under $MIT
2,188

A helper class to build file path. Useful in application, to provide path reference to whole app

published version 0.2.1, 10 years ago3 dependents licensed under $MIT
1,150

Find the root directory of a Node.js project or npm package

published version 8.0.0, a year ago3199 dependents licensed under $MIT
260,676,976

compute the closest common parent for file paths

published version 1.0.1, 10 years ago1328 dependents licensed under $MIT
95,957,282

Find the root directory of a Node.js project from a given path

published version 2.0.0, 6 years ago4 dependents licensed under $ISC
1,715

Find the root path of a monorepo using various strategies.

published version 1.0.9, a year ago1 dependents
1,536

Get the absolute path to the global yarn config directory.

published version 1.0.2, 6 years ago3 dependents licensed under $MIT
713

Simple module helps you access your application's root path from anywhere in the application without resorting to relative paths like require("../../path").

published version 1.0.0, 4 years ago0 dependents licensed under $ISC
585

Guess the root path of a project

published version 1.0.0, 7 years ago7 dependents licensed under $ISC
215

npm install --save rootrequire # then `var root = require('rootrequire'), myLib = require(root + 'path/to/lib.js');`

published version 1.0.0, 10 years ago4 dependents licensed under $MIT
1,082