Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ JUST_SCRAPE_DEBUG=1 just-scrape ... # Debug logging to stderr

## JSON Mode (`--json`)

All commands support `--json` for machine-readable output. When set, banner, spinners, and interactive prompts are suppressed — only raw JSON on stdout.
All commands support `--json` for machine-readable output. When set, banner, spinners, and interactive prompts are suppressed — only minified JSON on stdout (saves tokens when piped to AI agents).

```bash
just-scrape credits --json | jq '.remaining_credits'
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "just-scrape",
"version": "0.1.6",
"version": "0.1.7",
"description": "ScrapeGraph AI CLI tool",
"type": "module",
"main": "dist/cli.mjs",
Expand Down
2 changes: 1 addition & 1 deletion src/lib/log.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export function create(quiet = false) {
if (!quiet) s.message(`Status: ${status}`);
},
result(data: unknown) {
if (quiet) console.log(JSON.stringify(data, null, 2));
if (quiet) console.log(JSON.stringify(data));
else console.log(`\n${highlight(JSON.stringify(data, null, 2))}\n`);
},
error(message?: string) {
Expand Down