Configuration loader with CLI argument merging. Supports .js and .json config files with fallback chain.

Methods

(inner) getArgValue(args, config, opts) → {string|undefined}

Gets string value from args or config with fallback

Parameters:
NameTypeDescription
argsArray.<string>
configObject
optsObject
Returns:
Type: 
string | undefined

(inner) getFlag(args, config, opts) → {boolean}

Gets boolean flag from args or config with fallback

Parameters:
NameTypeDescription
argsArray.<string>
configObject
optsObject
Returns:
Type: 
boolean

(inner) loadConfig(cwdopt) → {Object}

Loads config from .i18nkit.config.js or .json variants

Parameters:
NameTypeAttributesDefaultDescription
cwdstring<optional>
process.cwd()
Returns:
Type: 
Object