Search results

1000+ packages found

Find a file or directory by walking up parent directories

published version 7.0.0, a year ago5390 dependents licensed under $MIT
661,378,419

Extract the non-magic parent path from a glob string.

published version 6.0.2, 4 years ago2677 dependents licensed under $ISC
530,105,079

Make a directory and its parents if needed - Think `mkdir -p`

published version 5.0.0, a year ago2789 dependents licensed under $MIT
341,717,184

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

published version 8.0.0, a year ago3289 dependents licensed under $MIT
277,209,456

A tiny (183B to 210B) and fast utility to ascend parent directories

published version 3.2.0, 8 months ago2172 dependents licensed under $MIT
269,060,243

Get the path of the parent module

published version 3.1.0, 2 years ago1753 dependents licensed under $MIT
207,743,866

compute the closest common parent for file paths

published version 1.0.1, 10 years ago1367 dependents licensed under $MIT
98,333,262

unist utility to recursively walk over nodes, with ancestral information

published version 6.0.1, 2 years ago430 dependents licensed under $MIT
72,348,545

Get the path of the caller function

published version 4.0.0, 4 years ago647 dependents licensed under $MIT
29,527,565

Get the callsite of the caller function

published version 5.0.0, 4 years ago574 dependents licensed under $MIT
25,276,048

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

published version 1.0.1, 2 months ago66 dependents licensed under $MIT
13,187,703

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

published version 0.3.0, 10 years ago241 dependents licensed under $MIT
9,397,309

Read the closest package.json file

published version 11.0.0, a year ago158 dependents licensed under $MIT
8,501,841

Find package.json files in parent directories, keep finding until you find the right one using iterators.

published version 1.2.0, 6 years ago294 dependents licensed under $MIT
5,932,448

return all the parent directories for a directory

published version 1.0.1, 10 years ago106 dependents licensed under $MIT
4,691,849

Utilities for finding the closest package.json file

published version 1.2.0, a year ago10 dependents licensed under $MIT
3,518,822

Finds the first parent directory that contains a given file or directory.

published version 0.3.1, 4 years ago183 dependents licensed under $MIT
2,178,437

Resolve a path by walking parent directories.

published version 0.2.2, 9 months ago3 dependents licensed under $Apache-2.0
1,880,760

Returns an array containing the initial elements which both input arrays have in common

published version 3.0.0, 7 months ago11 dependents licensed under $MIT
916,621

resolve package root and package.json paths , work on node 17 too

published version 2.0.12, a year ago5 dependents licensed under $ISC
316,017