mirror of
https://github.com/antonmedv/fx
synced 2024-11-03 15:40:12 +00:00
1.8 KiB
1.8 KiB
* Function eXecution
Command-line JSON processing tool
Features
- Don't need to learn new syntax
- Plain JavaScript
- Formatting and highlighting
- Standalone binary
- Interactive mode 🎉
Install
$ npm install -g fx
Or via Homebrew
$ brew install fx
Or download standalone binary from releases page.
Usage
Start interactive mode without passing any arguments.
$ curl ... | fx
Or by passing filename as first argument.
$ fx data.json
Pipe into fx
any JSON and anonymous function for reducing it.
$ curl ... | fx 'json => json.message'
Or same as above but sorter.
$ curl ... | fx this.message
$ curl ... | fx .message
Documentation
See full documentation.