mirror of
https://github.com/tldr-pages/tldr.git
synced 2026-08-28 11:25:16 +08:00
3627324f9b
Co-authored-by: Managor <42655600+Managor@users.noreply.github.com>
515 B
515 B
fx
View and process JSON. More information: https://fx.wtf/getting-started.
- View a JSON file interactively:
fx {{path/to/file.json}}
- Pretty-print and colorize JSON from
stdin:
cat {{path/to/file.json}} | fx
- Open JSON data from a URL:
curl {{url}} | fx
- Filter JSON using JavaScript-like expressions:
fx {{path/to/file.json}} {{.name}}
- Parse a TOML input file into JSON:
fx --toml {{path/to/file.toml}}
- Parse a YAML input file into JSON:
fx --yaml {{path/to/file.yaml}}