a6ffb220daaa9f8f933f1d80620e9d700ae37793 — Greg Anders a month ago cd97f53
Update installation instructions in README
1 files changed, 25 insertions(+), 12 deletions(-)

M README.md => README.md +25 -12
@@ 7,38 7,51 @@ Interactive `jq` tool. Like [jqplay][] for the commandline.

[jqplay]: https://jqplay.org


Install [go][golang]. Then simply run
### Homebrew

If you use macOS and Homebrew, you can install `ijq` with

from the root of the project.
    brew install gpanders/tap/ijq

[golang]: https://golang.org/dl/
### Download a release

Select the version you want to download from [sourcehut][] and download one of
the precompiled releases from that page. Then extract the archive somewhere on
your system path.


To install `ijq` under `/usr/local/bin/` simply use
    wget https://git.sr.ht/~gpanders/ijq/refs/v0.1.0/ijq-x86_64-linux-gnu.tar.gz
    tar -C /usr/local/bin/ -xf ijq-x86_64-linux-gnu.tar.gz

[sourcehut]: https://git.sr.ht/~gpanders/ijq/refs

### Build from source

Install [go][]. Then to install `ijq` under `/usr/local/bin/` simply run

    make install

To install to another location, set the `PREFIX` variable, e.g.
from the root of the project. To install to another location, set the `PREFIX`
variable, e.g.

    make PREFIX=~/.local install

[go]: https://golang.org/dl/


ijq uses [jq][] under the hood, so make sure you have that installed first.

Read from a file
Read from a file:

    ijq file.json

Read from stdin
Read from stdin:

    curl -s https://api.github.com/users/gpanders | ijq