diff --git a/doc/api/cli.md b/doc/api/cli.md index c050c177cfe06d..aedc223f9851fb 100644 --- a/doc/api/cli.md +++ b/doc/api/cli.md @@ -615,6 +615,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`