Github url


by antonmedv

antonmedv /fx

Command-line tool and terminal JSON viewer πŸ”₯

9.8K Stars 308 Forks Last release: 26 days ago (19.0.1) MIT License 233 Commits 41 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:

fx logo

fx example

* Function eXecution

Build StatusNpm VersionBrew Version

Command-line JSON processing tool


  • Easy to use
  • Standalone binary
  • Interactive mode πŸŽ‰
  • Streaming support 🌊


npm install -g fx

Or via Homebrew

bash brew install fx

Or download standalone binary from releases

bash bash 
## Usage

Start [interactive mode]( without passing any arguments.

bash $ curl ... | fx

Or by passing filename as first argument.

bash $ fx data.json

Pass a few JSON files.

bash cat foo.json bar.json baz.json | fx .message

Use full power of JavaScript.

bash $ curl ... | fx '.filter(x => x.startsWith("a"))'

Access all lodash (or ramda, etc) methods by using [.fxrc]( file.

bash $ curl ... | fx '_.groupBy("")' '_.mapValues(_.size)'

Update JSON using spread operator.

bash $ echo '{"count": 0}' | fx '{...this, count: 1}' { "count": 1 }

Print formatted JSON to stdout.

bash $ curl ... | fx .

Pipe JSON logs stream into fx.

bash $ kubectl logs ... -f | fx .message

And try this:

bash $ fx --life

## Documentation

See full [documentation](

## Links




We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.