UNPKG

flatgeobuf

Version:

A performant binary encoding for geographic data

2 lines 314 B
import{Readable as r}from"node:stream";export function arrayToStream(t){let e=r.from(Buffer.from(t));return r.toWeb(e)}export async function takeAsync(r,t=1/0){let e=[],o=r[Symbol.asyncIterator]();for(;e.length<t;){let{value:r,done:t}=await o.next();if(t)break;e.push(r)}return e} //# sourceMappingURL=utils.js.map