find_package_json

Function find_package_json 

Source
pub fn find_package_json(start_dir: &Path) -> Result<PathBuf>
Expand description

Find the package.json file starting from the given directory.

Searches the given directory and up to 10 parent directories.

ยงErrors

Returns an error if no package.json is found.