Find a file or directory by walking up parent directories
Make a directory and its parents if needed - Think `mkdir -p`
Read the closest package.json file
Find the root directory of a Node.js project or npm package
Extract the non-magic parent path from a glob string.
Find the closest package.json file
Get the path of the caller function
Get the callsite of the caller function
compute the closest common parent for file paths
Loads package.json, by finding the first directory with a package.json, recursing up, starting with the given directory.
Returns the parent directory common to each path
Returns an array containing the initial elements which both input arrays have in common
Scope each css rule with a selector, ie. nest into parent
Find package.json files in parent directories, keep finding until you find the right one using iterators.
Convert a plain array of nodes (with pointers to parent nodes) to a tree
Make directories and their parents if needed - Like `mkdir -p`, but cross-platform
Add a parent reference for each AST node
A utility for finding the nearest parent that matches a test function
Find the root directory of a `git` repository
powered by npms.io 🚀