fx

fx example

_* Function eXecution_ [![Build Status](https://travis-ci.org/antonmedv/fx.svg?branch=master)](https://travis-ci.org/antonmedv/fx) [![Npm Version](https://badgen.net/npm/v/fx)](https://www.npmjs.com/package/fx) [![Brew Version](https://badgen.net/homebrew/v/fx)](https://formulae.brew.sh/formula/fx) 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](https://github.com/antonmedv/fx/releases) page. ## Usage Pipe into `fx` any JSON and anonymous function for reducing it. ``` $ cat ... | fx [code ...] ``` Start interactive mode without passing any arguments. ``` $ curl ... | fx ``` Or by passing filename as first argument. ``` $ fx data.json ``` ## Documentation See full [documentation](https://github.com/antonmedv/fx/blob/master/docs.md). ## Related * [xx](https://github.com/antonmedv/xx) - fx-like JSON tool (*go*) * [ymlx](https://github.com/matthewadams/ymlx) - fx-like YAML cli processor ## License [MIT](https://github.com/antonmedv/fx/blob/master/LICENSE)