fx/README.md
2018-12-02 23:24:47 +07:00

1.8 KiB

fx

fx example

* Function eXecution

Build Status Npm Version Brew Version

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.

  • xx - fx-like JSON tool (go)
  • ymlx - fx-like YAML cli processor

License

MIT