fx can work in two modes, cli and interactive. To start interactive mode pipe any JSON into fx. One of the frequent operations is mapping some function on an array. You can pass any number of anonymous functions for reducing JSON. fx provides a function save which will save everything in place and return saved object. This function can be only used with filename as first argument to fx command. Create .fxrc file in $HOME directory, and require any packages or define global functions. To be able require global modules make sure you have correct NODE_PATH env variable. If you need output other than JSON (for example arguments for xargs), do not return anything from the reducer. undefined value is printed into stderr by default. Sometimes it is necessary to omit some messages in JSON stream, or select only specified log messages. For this purpose, fx has special helpers select/filter, pass function into it to select/filter JSON messages.

Features

  • Command-line JSON processing tool
  • Easy to use
  • Standalone binary
  • Interactive mode
  • Streaming support
  • Extract values from maps

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow fx

fx Web Site

Other Useful Business Software
Stay in Flow. Let Zenflow Handle the Heavy Lifting. Icon
Stay in Flow. Let Zenflow Handle the Heavy Lifting.

Your AI engineering control center. Zenflow turns specs into shipped features using parallel agents and multi-repo intelligence.

Zenflow is your engineering control center, turning specs into shipped features. Parallel agents handle coding, testing, and refactoring with real repo context. Multi-agent workflows remove bottlenecks and automate routine work so developers stay focused and in flow.
Try free now
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of fx!

Additional Project Details

Programming Language

JavaScript

Related Categories

JavaScript Terminals, JavaScript Command Line Tools

Registered

2021-05-31