mirror of
https://github.com/tldr-pages/tldr.git
synced 2026-08-28 11:25:16 +08:00
jless: add page (#23211)
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
# jless
|
||||
|
||||
> View and explore JSON data interactively.
|
||||
> See also: `jq`, `fx`, `less`.
|
||||
> More information: <https://jless.io/user-guide>.
|
||||
|
||||
- Open a JSON file:
|
||||
|
||||
`jless {{path/to/file.json}}`
|
||||
|
||||
- Read JSON from `stdin`:
|
||||
|
||||
`cat {{path/to/file.json}} | jless`
|
||||
|
||||
- Force YAML parsing regardless of file extension:
|
||||
|
||||
`jless --yaml {{path/to/file}}`
|
||||
|
||||
- Start in line mode (show braces, commas, and quoted object keys):
|
||||
|
||||
`jless {{[-m|--mode]}} line {{path/to/file.json}}`
|
||||
|
||||
- Hide line numbers:
|
||||
|
||||
`jless {{[-N|--no-line-numbers]}} {{path/to/file.json}}`
|
||||
|
||||
- Show relative line numbers:
|
||||
|
||||
`jless {{[-r|--relative-line-numbers]}} {{path/to/file.json}}`
|
||||
|
||||
- [Interactive] Search forward for a pattern (press `<n>`/`<N>` for next/previous match):
|
||||
|
||||
`</>{{pattern}}`
|
||||
|
||||
- [Interactive] Exit:
|
||||
|
||||
`<q>`
|
||||
Reference in New Issue
Block a user