Skip to content

Tail a file. If a line is JSON, pretty-print it. Otherwise, just print it. Basically just boilerplate.

License

Notifications You must be signed in to change notification settings

jessety/tail-json

Repository files navigation

tail-json

Tail a file. If a line is valid JSON, parse and pretty-print it. Otherwise, just print it.

ci

Install

Run npm install and npm run build, then npm link.

Usage

tail-json /var/log/project-name/all.log

Any lines that parse as valid JSON will be pretty-printed, any that don't will be printed normally.

Screenshot

License

MIT © Jesse Youngblood

About

Tail a file. If a line is JSON, pretty-print it. Otherwise, just print it. Basically just boilerplate.

Resources

License

Stars

Watchers

Forks