Loading...
Loading...
Converts CLI output to JSON for structured processing and analysis. Use when parsing ps, dig, netstat, ls, or other command output into machine-readable format for piping to jq or scripts.
npx skill4agent add knoopx/pi jccommand | jc --parser # Pipe output
jc command # Magic syntax
jc --help # List all parsers
jc --help --parser # Parser docsdig example.com | jc --dig | jq '.answer[].data'
ps aux | jc --ps
ifconfig | jc --ifconfig| Category | Parsers |
|---|---|
| System | |
| Network | |
| Files | |
| Packages | |
| Logs | |
| Dev | |
| Flag | Description |
|---|---|
| Pretty format JSON |
| Raw output (less processed) |
| Unbuffered output |
| Quiet (suppress warnings) |
| Debug mode |
| YAML output |
| Add metadata |
| Slurp multi-line input |
START:STOPcat file.txt | jc 1:-1 --parser # Skip first/last lines--slurpcat ips.txt | jc --slurp --ip-addressimport jc
# Parse command output
data = jc.parse('dig', output_string)
# Or parse directly
data = jc.parsers.dig.parse(output_string)jc commandjqjc cmd | jq '.field'--slurp