Search results

1000+ packages found

Find a file or directory by walking up parent directories

published version 7.0.0, a year ago5396 dependents licensed under $MIT
641,069,719

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

published version 6.0.2, 4 years ago2681 dependents licensed under $ISC
517,794,960

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

published version 5.0.0, a year ago2790 dependents licensed under $MIT
338,992,839

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

published version 8.0.0, a year ago3290 dependents licensed under $MIT
277,602,825

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

published version 3.2.0, 8 months ago2178 dependents licensed under $MIT
270,408,568

Get the path of the parent module

published version 3.1.0, 2 years ago1754 dependents licensed under $MIT
203,950,888

compute the closest common parent for file paths

published version 1.0.1, 10 years ago1368 dependents licensed under $MIT
94,731,504

unist utility to recursively walk over nodes, with ancestral information

published version 6.0.1, 2 years ago432 dependents licensed under $MIT
69,644,642

Get the path of the caller function

published version 4.0.0, 4 years ago648 dependents licensed under $MIT
29,633,043

Get the callsite of the caller function

published version 5.0.0, 4 years ago575 dependents licensed under $MIT
25,415,596

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

published version 1.0.1, 2 months ago67 dependents licensed under $MIT
12,971,498

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,375,816

Read the closest package.json file

published version 11.0.0, a year ago159 dependents licensed under $MIT
8,198,670

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,886,726

return all the parent directories for a directory

published version 1.0.1, 10 years ago106 dependents licensed under $MIT
4,723,900

Utilities for finding the closest package.json file

published version 1.2.0, a year ago12 dependents licensed under $MIT
3,292,386

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,214,689

Resolve a path by walking parent directories.

published version 0.2.2, 9 months ago3 dependents licensed under $Apache-2.0
1,918,352

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

published version 3.0.0, 8 months ago11 dependents licensed under $MIT
912,110

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

published version 2.0.12, a year ago5 dependents licensed under $ISC
312,362