Renders all examples as newline-delimited JSON (one compact JSON object per line), e.g. for piping to jq -- jq . and friends read an NDJSON stream as a sequence of values without needing -s/--slurp.
jq
jq .
-s
--slurp
This is the CLI's default output format.
process.stdout.write(formatExamplesAsJson(extractExamples(html))); Copy
process.stdout.write(formatExamplesAsJson(extractExamples(html)));
Renders all examples as newline-delimited JSON (one compact JSON object per line), e.g. for piping to
jq--jq .and friends read an NDJSON stream as a sequence of values without needing-s/--slurp.This is the CLI's default output format.