Package: wnpp Severity: wishlist Owner: Yinuo Deng <dyno...@outlook.com>
* Package name : fx Version : 24.1.0-1 Upstream Author : Anton Medvedev * URL : https://github.com/antonmedv/fx * License : Expat Programming Lang: Go Description : Terminal JSON viewer ** Function eXecution* . Features . * Mouse support * Streaming support * Preserves key order * Preserves big numbers . Install . brew install fx . snap install fx . scoop install fx . pacman -S fx . pkg install fx . go install github.com/antonmedv/fx@latest . Or download pre-built binary (https://github.com/antonmedv/fx/releases) via: . curl https://fx.wtf/install.sh | sh . Take a look at the JavaScript version of the fx: npm i fx (/npm/README.md). . Usage . Start the interactive viewer via: . fx data.json . Or . curl ... | fx . Type ? to see full list of key shortcuts. . Pretty print: . curl ... | fx . . Reducers . Write reducers in your favorite language: JavaScript (/doc/js.md) (default), Python (/doc/python.md), or Ruby (/doc/ruby.md). . fx data.json '.filter(x => x.startsWith("a"))' . fx data.json '[x["age"] + i for i in range(10)]' . fx data.json 'x.to_a.map {|x| x[1]}' . Documentation . See full documentation (/doc/doc.md). . Themes . Theme can be configured by setting environment variable FX_THEME from 1 to 9: . export FX_THEME=9 . . Add your own themes in theme.go (/pkg/theme/theme.go) file. . License . MIT (/LICENSE) As requested in #1018794