@karmaniverous/get-dotenv
    Preparing search index...
    • Resolve a deterministic dotenv target across paths based on scope/privacy selectors.

      Selection rules, in tiers (each tier searches every path, in search order, before the next):

      1. an existing target file (<target>);
      2. the env-specific template (<target>.<templateExtension>);
      3. scope: 'env' only: the shared env template, named like the target with sharedEnvTemplateToken in place of the env name (.env.env.local.template).

      So an existing target in any path beats a template in any path, and an env-specific template in any path beats the shared one. For a template match, targetPath is the target filename in the template's directory. Throws, listing every candidate checked, when nothing matches.

      Parameters

      Returns Promise<ResolveDotenvTargetResult>

      The resolved target path and optional template path.