async function downloadToMemory()

in gcs.js [32:36]


async function downloadToMemory(bucketId, objectId) {
  // TODO: Should we set a max on the amount of bytes read?
  const response = await storage.bucket(bucketId).file(objectId).download();
  return response[0]; // First item
}