heapwolf / ntail

tolerant tailing for your new line delimited json output

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SYNOPSIS

Pretty print your newline delimited json, tolerate unparsable lines.

INSTALL

npm install ntail -g

USAGE

Let's say your program outputs new line delimited JSON, that's not going to be readable (ever). So pipe the output of your program to ntail and it will try to parse anything that is a valid line of JSON!

node myprogram.js | ntail

A more fancy way to capture the output in a different terminal window from where your process is running, is to pipe to a temp file and then tail that file, for example tail -f logfile | ntail.

If you want to mute all non parsable lines, use --mute.

OUTPUT

screenshot

About

tolerant tailing for your new line delimited json output


Languages

Language:JavaScript 100.0%