Interface DotEnvParseOptions

interface DotEnvParseOptions {
    allowEmptyVariables?: boolean;
    allowOrphanKeys?: boolean;
    environment?: string;
    ignoreLiteralCase?: boolean;
    interpolationEnabled?: boolean;
    normalize?: boolean;
    overwriteExisting?: boolean;
    parseLiterals?: boolean;
    parseNumbers?: boolean;
}

Properties

allowEmptyVariables?: boolean

Should empty variables (without a values set) be allowed. Defaults to true.

allowOrphanKeys?: boolean

Should orphan keys be allowed (line 24) or parsed as empty variables. Defaults to false.

environment?: string

The environment specific environment file to be loaded, if a folder is processed.

ignoreLiteralCase?: boolean

Should the casing of special literals (e.g. true, false, null, undefined, NaN) be ignored. Defaults to true.

interpolationEnabled?: boolean

Should string interpolation evaluated for other environment variables or handled as literal strings. Defaults to true.

normalize?: boolean

Should the environment variable names be normalized, and a normalized version be appended to the set of environment variables. Normalized names should be uppercase and instead of white space contain underscore.

overwriteExisting?: boolean

Should the existing environment variable values be overwritten. Defaults to false.

parseLiterals?: boolean

Should special literals be parsed as their JS values (e.g. true, false, null, undefined, NaN) or parsed as strings. Defaults to true.

parseNumbers?: boolean

Should number literals be parsed as numbers or parsed as strings. Defaults to true.

Generated using TypeDoc