diff --git a/README.md b/README.md index 1742b2d..840d6d1 100644 --- a/README.md +++ b/README.md @@ -1,99 +1,56 @@ -
- -_* Function eXecution_ - -## Features +# f(x) -- Mouse support -- Streaming support -- Preserves key order -- Preserves big numbers + ## Install -```bash +```sh brew install fx ``` -```bash +```sh snap install fx ``` -```bash +```sh scoop install fx ``` -```bash +```sh pacman -S fx ``` -```bash +```sh pkg install fx ``` -```bash +```sh go install github.com/antonmedv/fx@latest ``` -Or download [pre-built binary](https://github.com/antonmedv/fx/releases) via: +```sh +npm install -g fx +``` ```sh 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: -```bash +```sh fx data.json ``` Or -```bash +```sh curl ... | fx ``` -Type `?` to see full list of key shortcuts. - Pretty print: -```bash +```sh curl ... | fx . ``` -### Reducers - -Write reducers in your favorite language: [JavaScript](doc/js.md) (default), -[Python](doc/python.md), or [Ruby](doc/ruby.md). - -```bash -fx data.json '.filter(x => x.startsWith("a"))' -``` - -```bash -fx data.json '[x["age"] + i for i in range(10)]' -``` - -```bash -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`: - -```bash -export FX_THEME=9 -``` - -