philia
    Preparing search index...

    Function toBuffer

    • base64 http file 转为 Buffer

      Parameters

      • data: any

        数据

      • opts: { http?: boolean; path?: boolean } & RequestInit = {}
        • Optionalhttp?: boolean

          是否返回 http

        • Optionalpath?: boolean

          是否返回文件路径

        • http

          是否返回 http

        • path

          是否返回文件路径

      Returns Promise<string | Buffer<ArrayBufferLike>>