You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There's no way to get data out of the REPL into other tools today. Export helpers would enable inbox analysis in spreadsheets, databases, or CLI pipelines.
Proposed API
// Export messages to JSON (stdout or file)awaittoJSON(awaitmessages('from:boss@example.com'))// Export messages to CSVawaittoCSV(awaitmessages('from:boss@example.com'))// Optionally write to a fileawaittoCSV(awaitmessages('label:receipts'),'receipts.csv')
Notes
toJSON could just be a thin wrapper around JSON.stringify with pretty-printing
There's no way to get data out of the REPL into other tools today. Export helpers would enable inbox analysis in spreadsheets, databases, or CLI pipelines.
Proposed API
Notes
toJSONcould just be a thin wrapper aroundJSON.stringifywith pretty-printingtoCSVshould flatten the key fields:id, from, to, subject, date— pairs naturally withdecode()added in Add send, reply, and draft capability #2./repl.js < script.js > output.csv