@ai16z/eliza v1.0.0 / findNearestEnvFile
Function: findNearestEnvFile()
findNearestEnvFile(
startDir
?):string
Recursively searches for a .env file starting from the current directory and moving up through parent directories
Parameters
• startDir?: string
= ...
Starting directory for the search
Returns
string
Path to the nearest .env file or null if not found