Skip to content

Commit

Permalink
Update README.md (#58)
Browse files Browse the repository at this point in the history
* Update README.md

explanation

* Update README.md

Co-authored-by: Rex P <106129829+another-rex@users.noreply.github.com>

Co-authored-by: Oliver Chang <oliverchang@users.noreply.github.com>
Co-authored-by: Rex P <106129829+another-rex@users.noreply.github.com>
  • Loading branch information
3 people committed Dec 16, 2022
1 parent 5589423 commit ac28fb9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,8 @@ reason = "No external http servers are written in Go lang."
## JSON output
By default osv-scanner outputs a human readable table. To have osv-scanner output JSON instead, pass the `--json` flag when calling osv-scanner.

When using the --json flag, only the JSON output will be printed to stdout, with all other outputs being directed to stderr. So to save only the json output to file, you can redirect the output with `osv-scanner --json ... > /path/to/file.json`

### Output Format
```json5
{
Expand Down

0 comments on commit ac28fb9

Please sign in to comment.