An open API service indexing awesome lists of open source software.

https://github.com/heapwolf/ntail

tolerant tailing for your new line delimited json output
https://github.com/heapwolf/ntail

Last synced: about 1 month ago
JSON representation

tolerant tailing for your new line delimited json output

Awesome Lists containing this project

README

        

# SYNOPSIS
Pretty print your [`newline delimited json`](http://ndjson.org/), 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!

```bash
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](/screenshot.png)