Function
loadJSDocConfig
(cwd = process.cwd(), configPath = "jsdocs.config.json")
Source from the content-addressed store, hash-verified
| 3365 | * @since 4.0.0 |
| 3366 | */ |
| 3367 | export function loadJSDocConfig(cwd = process.cwd(), configPath = "jsdocs.config.json"): JSDocConfig { |
| 3368 | const absolute = path.resolve(cwd, configPath) |
| 3369 | const parsed = JSON.parse(fs.readFileSync(absolute, "utf8")) as JSDocConfig |
| 3370 | return parsed |
| 3371 | } |
| 3372 | |
| 3373 | /** |
| 3374 | * Extracts a complete JSDoc model synchronously. |
Tested by
no test coverage detected