fx

Terminal JSON viewer & processor

MIT License

Downloads
1M
Stars
19K
Committers
26

Bot releases are visible (Hide)

fx - 35.0.0 Latest Release

Published by antonmedv 4 months ago

Fx is terminal JSON viewer & processor.

In this release:

  • Fixed a bug with very long arguments 44e7388
  • Fixed a bug with closing profiles properly (#307)
  • Fixed bash autocomplete for files without newline at the end (#304)
  • Fixed a bug with --raw flag reading files without newline at the end e465f7d
  • Updated dependencies 48a9ee9
fx - 34.0.0

Published by antonmedv 7 months ago

Fx is terminal JSON viewer & processor.

In this release:

  • Now fx has a built-in JS engine! So, JSON processing will work everywhere!
  • Added list function to print array as list of strings.
  • Fixed yanking of wrapped object keys.
fx - 33.0.0

Published by antonmedv 7 months ago

Terminal autocomplete

This release adds terminal autocomplete for fx command. It's available for bash, zsh, and fish.

New configuration options

  • FX_SHOW_SIZE - show the size of the arrays and objects
  • FX_NO_MOUSE - disable mouse support
  • FX_THEME - set the theme for the output
fx - 32.0.0

Published by antonmedv 7 months ago

YAML support

Now you can use fx to view and process YAML files!

fx example.yaml
# or 
cat example.yaml | fx --yaml

Fx will automatically convert YAML to JSON. The npm version of fx also supports YAML and provides YAML.parse and YAML.stringify functions.

npx fx example.yaml '.jobs.test.steps' YAML.stringify

Expand with 1-9 keys

Now you can use 1-9 keys to expand nested objects and arrays up to nth level.

Keybindings help

Type ? to see all available keybindings. Press ? again to close the help.

Preview mode

Type p to toggle preview mode. In preview mode, strings are unquoted and newlines are preserved.

This is useful when you want to see content of a long string.

Print to stdout

Type P to print the currently selected value to stdout. This is useful when you want to pipe the output of fx to another command.

curl https://fx.wtf/example.json | fx > part.json

Docker image

Now you can use fx as a Docker image.

docker run -it --rm -v .:/data:ro antonmedv/fx file.json
fx - 31.0.0

Published by antonmedv 11 months ago

  • Added support for JSON streaming/JSON lines.
  • Added new syntax sugar for .map(x => x.key) as @.key.
  • Improved JSON parsing error messages.
  • Improved JS reducer error messages.
fx -

Published by antonmedv about 1 year ago

  • Added keys() and values() functions.
fx -

Published by antonmedv about 1 year ago

  • Replace gid input with current path only if cursor at the end
  • Allow JSON path to start with [ char
  • Added more built-in functions (https://fx.wtf)
  • Fixed dig on ctrl+w (#275)
fx -

Published by antonmedv about 1 year ago

  • Added better dig path word jumping
  • Added len() func
  • Added fx themes to JS version
  • Fix: wrap collapsed nodes
  • Deleted gradient themes
  • Better dig key handling
  • Fixed \/ in key
fx -

Published by antonmedv about 1 year ago

Fx - terminal JSON viewer.

fx -

Published by antonmedv about 1 year ago

Fx - terminal JSON viewer.

fx -

Published by antonmedv about 1 year ago

Fx - terminal JSON viewer and processor

fx -

Published by antonmedv about 1 year ago

Fx - terminal JSON viewer.

I've taken fx back to the drawing board and completely rewritten it from the ground up. Excited to share what's new:

  1. ๐Ÿš€ Going Big: fx now gracefully handles even the most massive JSON files.
  2. ๐ŸŒˆ A New TUI Look: Dive deep into your data with a revamped terminal interfaceโ€”now with themes!
  3. ๐Ÿพ Swift Navigation with Dig Fuzzy Search: Feeling lost in JSON? Just type . and navigate with ease.
  4. ๐Ÿ” Powerful Regex Search: Scan across your entire JSON content with precision.
  5. ๐Ÿ“œ Elegant Long String Wraps: No more cut-offs. Your strings wrap beautifully now.
  6. โœ๏ธ All Things JSON: Added love for comments, trailing commas, and JSON streams.

Pouring my heart and soul into this rewrite has been a journey to make fx faster and more powerful. If you find value in what I've crafted and want to support its future, consider sponsoring on GitHub. ๐Ÿ™

Would love to hear your thoughts and feedback!

fx -

Published by antonmedv over 1 year ago

Fx - terminal JSON viewer release 24.1.0.

Install via:

brew install fx
fx - 24.0.0

Published by antonmedv over 2 years ago

This release adds the FX_SHOW_SIZE config for showing a number of elements of arrays and objects in collapsed nodes.

fx - 23.2.0

Published by antonmedv over 2 years ago

This release adds support for .fxrc.js file for default js reducer lang.

fx -

Published by antonmedv over 2 years ago

This release includes:

  • New JS VM
  • Fix for ignoring mouse clicks on status bar
  • Better search cursor jumps
fx -

Published by antonmedv over 2 years ago

fx - 23.0.0

Published by antonmedv over 2 years ago

This release brings back streaming support to fx:

kubectl logs ... | fx .message

As well as support for simple reducers (only for accessing objects and arrays) right in Go (no runtime is needed):

fx data.json '.foo[42].bar'
fx -

Published by antonmedv over 2 years ago

fx -

Published by antonmedv over 2 years ago

915c1e9 Added async reducers in nodejs.
36af650 Refactored Reduce() func to output extra text.
bdb1d00 Added delay before booting up interactive view to work better with nodejs cli apps.
3463842 The .fxrc file renamed to .fxrc.js file.

New .fxrc.js file is now an ESM module. You can now use top-level await, import, and require in the same .fxrc.js file.

import 'zx/globals'
Object.assign(global, require('lodash/fp'))
Package Rankings
Top 1.09% on Npmjs.org
Top 4.13% on Proxy.golang.org
Top 5.04% on Alpine-edge