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`
- mkdir
- mkdirp
- make
- directories
- dir
- dirs
- folders
- directory
- folder
- path
- parent
- parents
- intermediate
- recursively
- 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
- unflatten
- array-helper
- array-manipulations
- data-structures
- datastructures
- algorithms
- tree-structure
- array
- list
- collection
- pointer
- parent
- 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
Returns the chain of JavaScript files used to require a given Node module - i.e. its ancestors
Resolve a path by walking parent directories.
Implement prototypical inheritance by replacing the prototype of one constructor with the prototype of another constructor.
- stdlib
- stdutils
- stdutil
- utilities
- utility
- utils
- util
- prototype
- inherit
- inherits
- class
- oop
- object-oriented
- inheritance
- View more
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.
- stdlib
- stdassert
- assertion
- assert
- utilities
- utility
- utils
- util
- prototype
- proto
- inherit
- inherits
- class
- oop
- View more
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