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

Function readFileAsText

devtools/modules/importManager.js:53–60  ·  view source on GitHub ↗
(file)

Source from the content-addressed store, hash-verified

51}
52
53function readFileAsText(file) {
54 return new Promise((resolve, reject) => {
55 const reader = new FileReader();
56 reader.onload = () => resolve(reader.result);
57 reader.onerror = () => reject(reader.error);
58 reader.readAsText(file, 'utf-8');
59 });
60}
61
62function normalizeImportData(data) {
63 if (!data || typeof data !== 'object') {

Callers 1

handleImportFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected