Skip to content

Instantly share code, notes, and snippets.

View ikrik's full-sized avatar

Krik Tsakmatzian ikrik

View GitHub Profile
#!/usr/bin/env node
/* efood-report.js — enhanced insights
* Node 16+ CLI — reads Efood "orders" JSON (single response object or array),
* normalizes, aggregates, prints summary + insights.
*
* Flags:
* --csv <file> Export normalized orders to CSV
* --items-csv <file> Export aggregated items to CSV
* --list Print per-order table
*/