You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Go to file
Anton Medvedev dc5fe9bf8f Separate docs 6 years ago
.gitignore Add standalone binary dist 7 years ago
.travis.yml ci: test Node.js 8, 10 and 11 (#26) 6 years ago
LICENSE Create LICENSE 7 years ago
README.md Separate docs 6 years ago
config.js New features 6 years ago
docs.md Separate docs 6 years ago
fx.js Better auto replacement 6 years ago
index.js Improve DX 6 years ago
package.json Update package.json 6 years ago
print.js Separate build and release 6 years ago
reduce.js Improved rendering speed 6 years ago
test.js Add dot feature 6 years ago

README.md

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

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.

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

License

MIT