Skip to content

Help #449

@baby3110

Description

@baby3110

export function dotenvFileLoader(value: string | undefined): Record<string, string> | undefined {
if (!value)
return undefined;
return dotenv.parse(fs.readFileSync(value, 'utf8')); // unguarded
}try {
const data = await fs.promises.readFile(configFile, 'utf8');
return JSON.parse(...);
} catch {
return configFromIniFile(configFile);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions