Search results

1000+ packages found

Recursively resolve templates in an object, string or array.

published version 0.5.0, 8 years ago2 dependents licensed under $MIT
16,113

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

published version 5.0.0, 6 years ago3039 dependents licensed under $MIT
381,540,501

Resolve a URI relative to an optional base URI

published version 3.1.2, 10 months ago6 dependents licensed under $MIT
195,129,967

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

published version 1.0.1, 7 years ago273 dependents licensed under $MIT
34,684,536

Check if a path is inside another path

published version 4.0.0, 4 years ago1372 dependents licensed under $MIT
162,701,957

Generates an asynchronous resolver function from a PAC file

published version 7.0.1, 10 months ago313 dependents licensed under $MIT
40,278,064

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

published version 3.0.0, 6 years ago1624 dependents licensed under $MIT
114,382,495

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

published version 1.0.0, 7 years ago461 dependents licensed under $MIT
27,124,144

The directory used by npm for globally installed npm modules.

published version 2.0.0, 6 years ago859 dependents licensed under $MIT
71,220,644

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

published version 8.0.0, a year ago3222 dependents licensed under $MIT
250,760,040

Check if a module ID is resolvable with require()

published version 1.1.0, 7 years ago135 dependents licensed under $ISC
14,210,131

Resole and parse `tsconfig.json`, replicating to TypeScript's behaviour

published version 7.0.0, 7 years ago257 dependents licensed under $MIT
9,267,778

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 ago448 dependents licensed under $MIT
26,727,923

Find the first file matching a given pattern in the current directory or the nearest ancestor directory.

published version 5.0.0, 3 years ago816 dependents licensed under $MIT
34,901,083

Detects if a file exists and returns the resolved filepath.

published version 1.0.0, 7 years ago224 dependents licensed under $MIT
24,861,742

Find the first directory with a package.json, recursing up, starting with the given directory. Similar to look-up but does not support globs and only searches for package.json. Async and sync.

published version 2.0.0, 7 years ago121 dependents licensed under $MIT
8,650,500

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

published version 4.0.0, 4 years ago393 dependents licensed under $MIT
31,728,882

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

published version 2.0.0, 6 years ago184 dependents licensed under $MIT
5,996,721

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

published version 1.0.0, a year ago37 dependents licensed under $MIT
9,667,410

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

published version 3.0.0, 6 years ago392 dependents licensed under $MIT
14,163,132