"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.readFileAsText = readFileAsText;
function readFileAsText(file) {
    return new Promise((resolve) => {
        const reader = new FileReader();
        reader.onload = async (event) => {
            const text = event.target.result.toString();
            resolve(text);
        };
        reader.readAsText(file);
    });
}
//# sourceMappingURL=file.js.map