Configuration loader with CLI argument merging. Supports .js and .json config files with fallback chain.
- Source
Methods
(inner) getArgValue(args, config, opts) → {string|undefined}
Gets string value from args or config with fallback
Parameters:
| Name | Type | Description |
|---|---|---|
args | Array.<string> | |
config | Object | |
opts | Object |
- Source
Returns:
- Type:
- string |
undefined
(inner) getFlag(args, config, opts) → {boolean}
Gets boolean flag from args or config with fallback
Parameters:
| Name | Type | Description |
|---|---|---|
args | Array.<string> | |
config | Object | |
opts | Object |
- Source
Returns:
- Type:
- boolean
(inner) loadConfig(cwdopt) → {Object}
Loads config from .i18nkit.config.js or .json variants
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
cwd | string | <optional> | process.cwd() |
- Source
Returns:
- Type:
- Object