Update cheatsheets

This commit is contained in:
ivuorinen
2024-02-21 11:19:49 +00:00
parent 4e88a1b42f
commit 3d653cc7e6
4803 changed files with 127002 additions and 0 deletions

33
json5 Normal file
View File

@@ -0,0 +1,33 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# json5
> A command-line tool for converting JSON5 files to JSON.
> More information: <https://json5.org>.
- Convert JSON5 `stdin` to JSON `stdout`:
`echo {{input}} | json5`
- Convert a JSON5 file to JSON and output to `stdout`:
`json5 {{path/to/input_file.json5}}`
- Convert a JSON5 file to the specified JSON file:
`json5 {{path/to/input_file.json5}} --out-file {{path/to/output_file.json}}`
- Validate a JSON5 file:
`json5 {{path/to/input_file.json5}} --validate`
- Specify the number of spaces to indent by (or "t" for tabs):
`json5 --space {{indent_amount}}`
- Display help:
`json5 --help`