Update README.md

pull/195/head
Anton Medvedev 2 years ago
parent bf166fafda
commit 6ed6ba2ec4

@ -20,6 +20,8 @@ Or download [pre-built binary](https://github.com/antonmedv/fx/releases).
## Usage
Start the interactive viewer via:
```bash
$ fx data.json
```
@ -30,6 +32,8 @@ Or
$ curl ... | fx
```
Type `?` to see full list of key shortcuts.
### Reducers
```bash
@ -44,37 +48,20 @@ file.
$ fx data.json 'groupBy("commit.committer.name")' 'mapValues(_.size)'
```
Update JSON using spread operator.
## Documentation
```bash
$ echo '{"count": 0}' | fx '{...this, count: 1}'
{
"count": 1
}
```
Extract values from maps.
See full [documentation](https://github.com/antonmedv/fx/blob/master/DOCS.md).
```bash
$ fx commits.json | fx .[].commit.author
```
## Themes
Pretty print.
Theme can be configured by setting environment variable `FX_THEME` from `1` to `9`:
```bash
$ curl ... | fx .
export FX_THEME=9
```
## Documentation
See full [documentation](https://github.com/antonmedv/fx/blob/master/DOCS.md).
## Themes
| `FX_THEME=1` ![](docs/images/1.png) | `FX_THEME=2` ![](docs/images/2.png) | `FX_THEME=3` ![](docs/images/3.png) |
|:-----------------------------------:|:-----------------------------------:|:-----------------------------------:|
| `FX_THEME=4` ![](docs/images/4.png) | `FX_THEME=5` ![](docs/images/5.png) | `FX_THEME=6` ![](docs/images/6.png) |
| `FX_THEME=7` ![](docs/images/7.png) | `FX_THEME=8` ![](docs/images/8.png) | `FX_THEME=9` ![](docs/images/9.png) |
<img width="1214" alt="themes" src="docs/images/themes.png">
## License

Binary file not shown.

Before

Width:  |  Height:  |  Size: 192 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 192 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 192 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 192 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 192 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 195 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 192 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 190 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 194 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 659 KiB

Loading…
Cancel
Save