fx下载 命令行JSON查看工具
9525 2020-02-12 JavaScript MIT 官方网站
命令行JSON查看工具
9525 2020-02-12 JavaScript MIT 官方网站
命令行JSON查看工具
fx-linux.zip(18.0.1) 下载
fx-macos.zip(18.0.1) 下载
18.0.1.zip(18.0.1) 下载
fx-win.exe.zip(18.0.1) 下载
18.0.0.zip(18.0.0) 下载
fx-linux.zip(18.0.0) 下载
fx-macos.zip(18.0.0) 下载
fx-win.exe.zip(18.0.0) 下载
fx-macos.zip(17.0.0) 下载
fx-win.exe.zip(17.0.0) 下载
fx-linux.zip(17.0.0) 下载
17.0.0.zip(17.0.0) 下载
fx-linux.zip(16.0.0) 下载
16.0.0.zip(16.0.0) 下载
fx-macos.zip(16.0.0) 下载
fx-win.exe.zip(16.0.0) 下载
15.0.1.zip(15.0.1) 下载
fx-macos.zip(15.0.1) 下载
fx-linux.zip(15.0.1) 下载
fx-win.exe.zip(15.0.1) 下载
fx-macos.zip(15.0.0) 下载
fx-linux.zip(15.0.0) 下载
fx-win.exe.zip(15.0.0) 下载
15.0.0.zip(15.0.0) 下载
14.1.0.zip(14.1.0) 下载
fx-linux.zip(14.1.0) 下载
fx-win.exe.zip(14.1.0) 下载
fx-macos.zip(14.1.0) 下载
fx-linux.zip(14.0.1) 下载
14.0.1.zip(14.0.1) 下载
fx-macos.zip(14.0.1) 下载
fx-win.exe.zip(14.0.1) 下载
fx-macos.zip(14.0.0) 下载
14.0.0.zip(14.0.0) 下载
fx-win.exe.zip(14.0.0) 下载
fx-linux.zip(14.0.0) 下载
fx-linux.zip(13.0.0) 下载
fx-macos.zip(13.0.0) 下载
13.0.0.zip(13.0.0) 下载
fx-win.exe.zip(13.0.0) 下载
* Function eXecution
Command-line JSON processing tool
Easy to use
Standalone binary
Interactive mode
Streaming support
npm install -g fx
Or via Homebrew
brew install fx
Or download standalone binary from releases
bash <( curl -L https://fx.wtf )
Start interactive mode without passing any arguments.
$ curl ... | fx
Or by passing filename as first argument.
$ fx data.json
Pass a few JSON files.
cat foo.json bar.json baz.json | fx .message
Use full power of JavaScript.
$ curl ... | fx '.filter(x => x.startsWith("a"))'
Access all lodash (or ramda, etc) methods by using .fxrc file.
$ curl ... | fx '_.groupBy("commit.committer.name")' '_.mapValues(_.size)'
Update JSON using spread operator.
$ echo '{"count": 0}' | fx '{...this, count: 1}'
{
"count": 1
}
Print formatted JSON to stdout.
$ curl ... | fx .
Pipe JSON logs stream into fx.
$ kubectl logs ... -f | fx .message
And try this:
$ fx --life
See full documentation.
gofx – fx-like JSON tool (go)
eat – converts anything into JSON
ymlx – fx-like YAML cli processor
fx-completion – bash completion for fx
fx-theme-monokai – monokai theme
fx-theme-night – night theme