MCPcopy Create free account
hub / github.com/bywwcnll/StreamPanel / exportToJSON

Function exportToJSON

devtools/panel.bundle.js:2580–2583  ·  view source on GitHub ↗
(data, filename)

Source from the content-addressed store, hash-verified

2578 }
2579
2580 function exportToJSON(data, filename) {
2581 const jsonStr = JSON.stringify(data, null, 2);
2582 downloadFile(jsonStr, filename, 'application/json');
2583 }
2584
2585 function messagesToCSV(messages, connectionInfo = null) {
2586 const headers = ['ID', 'EventType', 'Data', 'LastEventId', 'Timestamp'];

Callers 1

handleExportFunction · 0.70

Calls 1

downloadFileFunction · 0.70

Tested by

no test coverage detected