221 packages found
Find a file or directory by walking up parent directories
Extract the non-magic parent path from a glob string.
compute the closest common parent for file paths
Make a directory and its parents if needed - Think `mkdir -p`
- View more
Find the root directory of a Node.js project or npm package
Read the closest package.json file
A tiny (183B to 210B) and fast utility to ascend parent directories
Converts an array of items with ids and parent ids to a nested tree in a performant `O(n)` way. Runs in browsers and node.
- array to tree
- list to tree
- View more
return all the parent directories for a directory
Get the path of the parent module
unist utility to recursively walk over nodes, with ancestral information
Resolve a path by walking parent directories.
Implement prototypical inheritance by replacing the prototype of one constructor with the prototype of another constructor.
Find the closest package.json file
Finds the first parent directory that contains a given file or directory.
Test whether a value has in its prototype chain a specified constructor as a prototype property.
Get absolute path to the module that required your module
Walk up the tree to resolve `tsconfig.json` configuration objects.
Get the path of the caller function