From b93cda14d2894a7e3372f88b68c0985645787865 Mon Sep 17 00:00:00 2001 From: Anton Medvedev Date: Sun, 2 Dec 2018 22:21:37 +0700 Subject: [PATCH] Update README.md --- README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 5b67010..fd34cdc 100644 --- a/README.md +++ b/README.md @@ -50,12 +50,17 @@ Pipe into `fx` any JSON and anonymous function for reducing it. $ curl ... | fx 'json => json.message' ``` -Or same as above but sorter. +Or same as above but short. ```bash $ curl ... | fx this.message $ curl ... | fx .message ``` +Pass any numbers of arguments as code. +``` +curl ... | fx 'json => json.message' 'json => json.filter(x => x.startsWith("a"))' +``` + ## Documentation See full [documentation](https://github.com/antonmedv/fx/blob/master/docs.md).