Search results

1000+ packages found

Resolve the path of a module like `require.resolve()` but from a given path

published version 5.0.0, 6 years ago3024 dependents licensed under $MIT
419,519,893

Find a file or directory by walking up parent directories

published version 7.0.0, a year ago5211 dependents licensed under $MIT
638,989,114

Check if a path is inside another path

published version 4.0.0, 4 years ago1369 dependents licensed under $MIT
178,494,091

Resolve the path of a module like `require.resolve()` but from the current working directory

published version 3.0.0, 6 years ago1616 dependents licensed under $MIT
124,756,595

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

published version 8.0.0, a year ago3207 dependents licensed under $MIT
278,092,034

The directory used by npm for globally installed npm modules.

published version 2.0.0, 6 years ago859 dependents licensed under $MIT
78,698,639

Resolve a directory that is either local, global or in the user's home directory.

published version 1.0.1, 7 years ago272 dependents licensed under $MIT
39,499,603

Returns `true` if the path appears to be relative.

published version 1.0.0, 7 years ago458 dependents licensed under $MIT
29,616,129

Detects if a file exists and returns the resolved filepath.

published version 1.0.0, 7 years ago223 dependents licensed under $MIT
28,939,942

Returns true if a file path is absolute. Does not rely on the path module and can be used as a polyfill for node.js native `path.isAbolute`.

published version 1.0.0, 7 years ago444 dependents licensed under $MIT
29,157,543

Get the npm global path prefix.

published version 4.0.0, 4 months ago540 dependents licensed under $MIT
81,223,506

Import a module like with `require()` but from a given path

published version 4.0.0, 4 years ago390 dependents licensed under $MIT
35,275,131

Import a module like with `require()` but from the current working directory

published version 3.0.0, 6 years ago393 dependents licensed under $MIT
16,170,183

Resolve the path to the user's local or global .gitconfig.

published version 2.0.0, 6 years ago143 dependents licensed under $MIT
6,478,709

Resolve the path of a globally installed module

published version 2.0.0, a year ago419 dependents licensed under $MIT
11,719,032

Easily get the CWD (current working directory) of a project based on package.json, optionally starting from a given path. (node.js/javascript util)

published version 0.10.0, 9 years ago129 dependents licensed under $MIT
5,946,888

Resolve a relative path against a root path with validation

published version 1.4.0, 7 years ago74 dependents licensed under $MIT
4,003,067

Resolve the path of a package regardless of it having an entry point

published version 2.0.0, 6 years ago183 dependents licensed under $MIT
6,338,126

Check if a module ID is resolvable with require()

published version 1.1.0, 7 years ago135 dependents licensed under $ISC
18,581,926

Find a file or directory by walking up parent directories — Zero dependencies

published version 1.0.0, a year ago34 dependents licensed under $MIT
9,377,682