Skip to content

Latest commit

 

History

History
24 lines (13 loc) · 568 Bytes

findNearestEnvFile.md

File metadata and controls

24 lines (13 loc) · 568 Bytes

@ai16z/eliza v0.1.5-alpha.3 / findNearestEnvFile

Function: findNearestEnvFile()

findNearestEnvFile(startDir?): string

Recursively searches for a .env file starting from the current directory and moving up through parent directories (Node.js only)

Parameters

startDir?: string = ...

Starting directory for the search

Returns

string

Path to the nearest .env file or null if not found

Defined in

packages/core/src/settings.ts:43