UNPKG

dataset-archive

Version:

Simple key-value storage of large sets of data in a very compact flat file, prioritising compact archival over read/write speeds. Very minimal.

11 lines (8 loc) 278 B
'use strict'; // utility, given an async iterable, eventually returns an array of everything it output in order async function asyncIterableToArray (iter) { const arr = []; for await (const val of iter) arr.push(val); return arr } module.exports = asyncIterableToArray;