Bot releases are hidden (Show)
Fx is terminal JSON viewer & processor.
In this release:
--raw
flag reading files without newline at the end e465f7dPublished by antonmedv 7 months ago
Fx is terminal JSON viewer & processor.
In this release:
list
function to print array as list of strings.Published by antonmedv 7 months ago
This release adds terminal autocomplete for fx
command. It's available for bash, zsh, and fish.
FX_SHOW_SIZE
- show the size of the arrays and objectsFX_NO_MOUSE
- disable mouse supportFX_THEME
- set the theme for the outputPublished by antonmedv 7 months ago
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
1
-9
keysNow you can use 1
-9
keys to expand nested objects and arrays up to nth level.
Type ?
to see all available keybindings. Press ?
again to close the help.
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.
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
Now you can use fx as a Docker image.
docker run -it --rm -v .:/data:ro antonmedv/fx file.json
Published by antonmedv 11 months ago
.map(x => x.key)
as @.key
.[
charFx - 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:
fx
now gracefully handles even the most massive JSON files..
and navigate with ease.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!
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.
Published by antonmedv over 2 years ago
This release adds support for .fxrc.js file for default js reducer lang.
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'
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'))