Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
antonmedv committed Mar 19, 2018
1 parent f38b4b5 commit b5462c7
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Pretty print JSON without passing any arguments:
```
$ echo '{"key":"value"}' | fx
{
"key": "value"
key: "value"
}
```

Expand Down Expand Up @@ -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"
]
```

Expand All @@ -93,7 +93,7 @@ You can update existing JSON using spread operator:
```
$ echo '{"count": 0}' | fx '{...this, count: 1}'
{
"count": 1
count: 1
}
```

Expand Down Expand Up @@ -125,8 +125,8 @@ Convert object to array:
```
$ cat package.json | fx 'Object.keys(this.dependencies)'
[
"cardinal",
"get-stdin",
"jsome",
"meow"
]
```
Expand Down

0 comments on commit b5462c7

Please sign in to comment.