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

Function readFileAsText

devtools/panel.bundle.js:2797–2804  ·  view source on GitHub ↗
(file)

Source from the content-addressed store, hash-verified

2795 }
2796
2797 function readFileAsText(file) {
2798 return new Promise((resolve, reject) => {
2799 const reader = new FileReader();
2800 reader.onload = () => resolve(reader.result);
2801 reader.onerror = () => reject(reader.error);
2802 reader.readAsText(file, 'utf-8');
2803 });
2804 }
2805
2806 function normalizeImportData(data) {
2807 if (!data || typeof data !== 'object') {

Callers 1

handleImportFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected