Skip to content

Commit bd68025

Browse files
committed
Added brew installation to readme. #11
1 parent 52fc2f1 commit bd68025

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,25 @@ Inspired by ```jq```, it offers JSON processing and transformation from CLI, and
77

88
By design it's compilable as native executable using GraalVM, and as such offers low startup time, optimized memory requirements, and good peak performance.
99

10+
# Installation
11+
12+
The jsonata CLI can be installed with homebrew:
13+
```
14+
% brew install dashjoin/tap/jsonata
15+
```
16+
The brew installation requires an installed Java runtime (`brew install java`).
17+
1018
```
1119
% jsonata
20+
JSONata CLI by Dashjoin (https://dashjoin.com)
21+
22+
CLI for the JSONata query and transformation language.
23+
More information at https://github.com/dashjoin/jsonata-cli
24+
25+
Prettify JSON file: jsonata -i input.json -o pretty.json $
26+
Compact JSON file: jsonata -i input.json -o compact.json -c $
27+
Extract info: jsonata -i package-lock.json '[name, version]'
28+
1229
usage: jsonata [options] <expression>
1330
-b,--bindings <json-string> JSONata variable bindings
1431
-bf,--bindings-file <file> JSONata variable bindings file
@@ -18,6 +35,7 @@ usage: jsonata [options] <expression>
1835
-i,--input <arg> JSON input file (- for stdin)
1936
-o,--output <arg> JSON output file (default=stdout)
2037
-time Print performance timers to stderr
38+
-v,--version Display version info
2139
```
2240

2341
# Examples

0 commit comments

Comments
 (0)