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