Filter JSON streams using javascript.
$ echo '{"event":true}{"event":1}{}' | filter "if (j.event) return j"
{"event":true}
{"event":1}
$ go get github.com/segmentio/filter
Usage:
filter <js>
filter -h | --help
filter -v | --version
Options:
-h, --help show help information
-v, --version show version information
MIT