closest-root

Allows the user to locate the root directory, of a Node application set up using npm, from a specified directory by traversing upwards until the root is located.

Browse on unpkg