https://github.com/antonmedv/fx Skip to content Sign up * Why GitHub? + Features + Mobile + Actions + Codespaces + Packages + Security + Code review + Issues + Integrations + GitHub Sponsors + Customer stories * Team * Enterprise * Explore + Explore GitHub + Learn and contribute + Topics + Collections + Trending + Learning Lab + Open source guides + Connect with others + The ReadME Project + Events + Community forum + GitHub Education + GitHub Stars program * Marketplace * Pricing + Plans + Compare plans + Contact Sales + Education [ ] * # In this repository All GitHub | Jump to | * No suggested jump to results * # In this repository All GitHub | Jump to | * # In this user All GitHub | Jump to | * # In this repository All GitHub | Jump to | Sign in Sign up {{ message }} antonmedv / fx Public * * Notifications * Fork 368 * Star 12.3k * Command-line tool and terminal JSON viewer fx.wtf MIT License 12.3k stars 368 forks Star Notifications * Code * Issues 28 * Pull requests 14 * Discussions * Actions * Security * Insights More * Code * Issues * Pull requests * Discussions * Actions * Security * Insights master Switch branches/tags [ ] Branches Tags Could not load branches Nothing to show {{ refName }} default View all branches Could not load tags Nothing to show {{ refName }} default View all tags 2 branches 44 tags Code Latest commit @yuryshulaev yuryshulaev Prevent "reduce" name collision (#177) ... 8a9e1f3 Jan 2, 2022 Prevent "reduce" name collision (#177) 8a9e1f3 Git stats * 249 commits Files Permalink Failed to load latest commit information. Type Name Latest commit message Commit time .gitignore Add standalone binary dist Jan 26, 2018 .travis.yml Update travis node version Sep 3, 2020 DOCS.md Add shift left collapse (#144) Oct 26, 2020 LICENSE Update LICENSE Jan 30, 2019 README.md Update README.md Jan 17, 2021 bang.js Add edit-in-place feature Dec 9, 2019 config.js Show status bar if pattern not found Dec 15, 2018 find.js Search on keys, not paths Dec 15, 2018 fx.js Add shift left collapse (#144) Oct 26, 2020 index.js fix: set exit code to zero when fx --version (#148) Nov 18, 2020 package.json Release 20.0.2 Sep 15, 2020 print.js Add lossless json Dec 13, 2019 reduce.js Prevent "reduce" name collision (#177) Jan 2, 2022 std.js Use LosslessJSON in reduce function Sep 15, 2020 stream.js Use LosslessJSON in reduce function Sep 15, 2020 test.js Add support for .[] Sep 3, 2020 View code Features Install Usage Documentation Links Related License README.md fx logo fx example * Function eXecution Build Status Npm Version Brew Version Command-line JSON processing tool Features * Easy to use * Standalone binary * Interactive mode * Streaming support Install npm install -g fx Or via Homebrew brew install fx Or download standalone binary from releases Usage 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 } Extract values from maps. $ fx commits.json | fx .[].author.name Print formatted JSON to stdout. $ curl ... | fx . Pipe JSON logs stream into fx. $ kubectl logs ... -f | fx .message And try this: $ fx --life Documentation See full documentation. Links * Discover how to use fx effectively * Video tutorial Related * 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 License MIT About Command-line tool and terminal JSON viewer fx.wtf Topics cli json Resources Readme License MIT License Stars 12.3k stars Watchers 124 watching Forks 368 forks Releases 41 Release 20.0.2 Latest Sep 15, 2020 + 40 releases Sponsor this project Sponsor Learn more about GitHub Sponsors Used by 112 * @GTBitsOfGood * @mshen63 * @teddyFeldmann * @Anupama1912 * @GTBitsOfGood * @hack4impact-utk * @GTBitsOfGood * @cblanquera + 104 Contributors 18 * * * * * * * * * * * + 7 contributors Languages * JavaScript 100.0% * (c) 2022 GitHub, Inc. * Terms * Privacy * Security * Status * Docs * Contact GitHub * Pricing * API * Training * Blog * About You can't perform that action at this time. You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.