Sha256: 1ee240683927ef49ddafe547ba3ae4b7ad9abbc502c941711776d5dc3df20c27
Contents?: true
Size: 346 Bytes
Versions: 26
Compression:
Stored size: 346 Bytes
Contents
// jsdom does not implement Blob.text() function readBlobText(blob, FileReader) { return new Promise((res, rej)=>{ const fr = new FileReader(); fr.onerror = rej; fr.onabort = rej; fr.onload = ()=>{ res(String(fr.result)); }; fr.readAsText(blob); }); } export { readBlobText };
Version data entries
26 entries across 26 versions & 1 rubygems