mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-07 04:57:02 +00:00
Update cheatsheets
This commit is contained in:
33
tldr/fx
Normal file
33
tldr/fx
Normal file
@@ -0,0 +1,33 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# 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}}`
|
||||
Reference in New Issue
Block a user