kennson/README.md

28 lines
969 B
Markdown
Raw Normal View History

2021-07-28 23:55:17 +03:00
# kennson
A terminal utility to pretty print JSON.
![Screenshot showing kennson pretty printing a JSON file](screenshot.png)
## Build instructions
Make sure you have [Dart](https://dart.dev/get-dart) installed, then run the following:
```bash
dart compile exe bin/kennson.dart
```
The compiled executable will be inside the `bin` folder, named `kennson.exe` (regardless of platform).
2021-07-29 00:11:03 +03:00
## Parameters
```text
-f, --file=<filename> Read JSON from file instead of stdin
--input=<json input> Read JSON as parameter instead of stdin
--jsonpath=<JSONPath query> Display only the matches of the JSON document
-p, --jsonpointer=<JSON Pointer> Display only the matches of the JSON pointer
-i, --indent Set space indentation level (prefix with t for tab indentation)
(defaults to "2")
-d, --max-depth Specify maximum nesting before stopping printing
```