(Optional) If provided, attempts to lookup from the from directory.
The most relevant application directory.
Heuristic for guessing main directory. This includes resolving the following use cases:
1) ./node_modules/.bin scripts 2) ./node_modules/PACKAGE_NAME/file scripts 3) ./SUBDIR/file calls
The first non-node_modules folder with a package.json in it is used.
Gets the directory of a package.
The path from which to look for the package directory.
The directory containing the package.json file.
Gets the package.json given a file path. If not found in the filepath directory, moves up a directory.
False if no file is found.
Normalize a pathname.
Generated using TypeDoc
Gets the most relevant application directory. This is defined by taking the currently executing file folder, and checking or moving up until the directory is no longer inside a node_modules folder.