ddopson / underscore-cli

Command-line utility-belt for hacking JSON and Javascript.
Other
1.72k stars 83 forks source link

Feature request: support json log files #24

Open matanox opened 10 years ago

matanox commented 10 years ago

Support for json log files such as the ones produced by winston, where each row in the log file is a json object.

This can work through a new command-line argument signaling the input should be assumed a json log file. Can just encapsulate the log rows, each row being a json object, as an array under a synthetic parent element named 'log' or 'object list' or anything else, prior to passing on to the existing formatting and display.