export async function download()

in packages/cli/src/utils/index.ts [45:49]


export async function download(url: string, fileName: string): Promise<void> {
  await fs.ensureFile(fileName);
  const stream = await bent(url)('') as NodeJS.ReadableStream;
  return pipelineAsync(stream, fs.createWriteStream(fileName));
}