@bitbeater/node-utils - v3.0.0
    Preparing search index...

    Function downloadOnFs

    • Downloads from url and save on fs, optimal for big files because uses streams. If the file directory does not exist, it will be recursively created. Once the download is complete, IncomingMessage is returned

      Parameters

      • filePath: string
      • request: HttpRequestInput
      • OptionalrequestInit: HttpRequestInit

      Returns Promise<{ response: Response; sha256: string; size: number }>