摘要:
const sleep = (milliseconds) => { return new Promise((resolve) => setTimeout(resolve, milliseconds)); }; usage: await sleep(1000); 阅读全文
posted @ 2022-01-10 17:54
shanejix
阅读(31)
评论(0)
推荐(0)
摘要:
import fs from "fs-extra"; import axios from "axios"; export async function downloadFile( url: string, output: string, options?: {} ): Promise<string> 阅读全文
posted @ 2022-01-10 17:54
shanejix
阅读(92)
评论(0)
推荐(0)