arblang 0.1.24

Visualize and modify Unix pipelines: pipe a stream in, arb spawns a dynamic TUI
Documentation
1
2
3
4
5
6
7
8
# json — shape of a JSON-lines stream: key frequency + live tail.
#   cat events.json | arb -p json
bars .keys
tail .raw
source .keys { in.json; names; tally }
source .raw  { in }

test "key tally" { given "{\"a\":1,\"b\":2}" "{\"a\":3,\"c\":4}"; run { in.json; names; tally }; want "a\t2" "b\t1" "c\t1" }