jsonl-ndjson-log-search
Installation
SKILL.md
JSON Lines & NDJSON Log Search
Gronify's -s / --stream / --jsonl mode streams JSON Lines (NDJSON) one record at a time and flattens each non-blank line as json[0], json[1], ... under json = [] (matching gron -s and fastgron -s). Memory stays flat regardless of record count, and -m / --limit stop reading early.
Check CLI availability and --jsonl support
-s, --stream, and --jsonl require Gronify 1.4.0 or newer (1.3.2 and older exit 1 with error: unknown option '-s'). Always check first:
command -v gronify && gronify flatten --help | grep -e --jsonl
- If
gronifyis missing, usenpx gronify ...or ask the user before runningnpm install -g gronifyorbrew install 1solomonwakhungu/tap/gronify. - If the installed release does not list
--jsonl, ask the user before updating (npm install -g gronify@latest) or fall back tojq -c 'select(...)' app.jsonl/rgon that file.
Explore a JSONL / NDJSON file safely
Always pass --no-color and cap output before printing: