UNPKG

igir

Version:

🕹 A zero-setup ROM collection manager that sorts, filters, extracts or archives, patches, and reports on collections of any size on any OS.

18 lines (17 loc) • 490 B
export default { async fromReadable(readable) { return new Promise((resolve, reject) => { readable.resume(); const chunks = []; readable.on('data', (chunk) => { if (chunk.length > 0) { chunks.push(chunk); } }); readable.on('end', () => { resolve(Buffer.concat(chunks)); }); readable.on('error', reject); }); }, };