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
- Host: GitHub
- URL: https://github.com/heapwolf/ntail
- Owner: heapwolf
- Created: 2017-03-17T18:36:48.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-03-27T07:33:22.000Z (about 8 years ago)
- Last Synced: 2025-03-25T22:36:21.721Z (about 2 months ago)
- Language: JavaScript
- Size: 66.4 KB
- Stars: 7
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
