diff --git a/doc/api/cli.md b/doc/api/cli.md index 4a2299931a1ab5..5dd079e95ec680 100644 --- a/doc/api/cli.md +++ b/doc/api/cli.md @@ -614,6 +614,15 @@ file will be created if it does not exist, and will be appended to if it does. If an error occurs while attempting to write the warning to the file, the warning will be written to stderr instead. +### `--report-compact` + + +Write reports in a compact format, single-line JSON, more easily consumable +by log processing systems than the default multi-line format designed for +human consumption. + ### `--report-directory=directory` + +* {boolean} + +Write reports in a compact format, single-line JSON, more easily consumable +by log processing systems than the default multi-line format designed for +human consumption. + +```js +console.log(`Reports are compact? ${process.report.compact}`); +``` + ### `process.report.directory`