From b5462c73d7e41d76096eb388bfc5a3a35a24b17f Mon Sep 17 00:00:00 2001 From: Anton Medvedev Date: Tue, 20 Mar 2018 00:03:16 +0700 Subject: [PATCH] Update README.md --- README.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 46b4128..628da81 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ Pretty print JSON without passing any arguments: ``` $ echo '{"key":"value"}' | fx { - "key": "value" + key: "value" } ``` @@ -72,17 +72,17 @@ Access to JSON through `this` keyword: ``` $ echo '["a", "b"]' | fx 'yield* this' [ - "a", - "b" + "a", + "b" ] ``` ``` $ echo '["a", "b"]' | fx 'yield* this; yield "c";' [ - "a", - "b", - "c" + "a", + "b", + "c" ] ``` @@ -93,7 +93,7 @@ You can update existing JSON using spread operator: ``` $ echo '{"count": 0}' | fx '{...this, count: 1}' { - "count": 1 + count: 1 } ``` @@ -125,8 +125,8 @@ Convert object to array: ``` $ cat package.json | fx 'Object.keys(this.dependencies)' [ - "cardinal", "get-stdin", + "jsome", "meow" ] ```