jsdoc-scribe API/lib/configv2.5.3
Functions(2)
#loadConfig
line 15
Load and return config from `configPath` (default: cwd/.jsdoc-scribe.json). Returns an empty object if the file doesn't exist.
ParameterTypeOptionalDescription
configPathstringyes- Explicit path to config file.
Returns: { out?, title?, theme?, json?, readme?, ignore?, sourceUrl?, baseUrl?, description? }
Signature
loadConfig(configPath: any): any
#mergeConfig
line 44
Merge config file values with CLI args. CLI args take precedence over config file for every scalar option (explicit undefined values are skipped) -- EXCEPT `ignore`, which is additive rather than override-on-conflict: both the config file's and the CLI's `--ignore` patterns apply together (file-config patterns first, then CLI patterns). This is deliberate, not an oversight (clarified 2026-07-31, previously this doc comment claimed a blanket "CLI wins" contract that didn't match the code below it) -- a project's checked-in ignore list should always apply; a one-off `--ignore` flag is meant to add an extra exclusion for that run, not silently drop the config file's exclusions. There is no way to subtract a config-file ignore pattern from the CLI today.
ParameterTypeOptionalDescription
fileConfigobject- Values from .jsdoc-scribe.json
cliArgsobject- Values parsed from argv (undefined = not set)
Returns: object — Merged options object
Signature
mergeConfig(fileConfig: any, cliArgs: any): any
Variables & Constants(5)
const fs: any
const
Signature
const fs: any
const path: any
const
Signature
const path: any
#CONFIG_FILENAME
line 6
const CONFIG_FILENAME: string
const
Signature
const CONFIG_FILENAME: string
const p: any
const
Signature
const p: any
const raw: any
const
Signature
const raw: any