fast-fs-hash - v0.0.0-rc4
    Preparing search index...

    Variable digestFileToConst

    digestFileTo: <TOut extends Uint8Array = Buffer>(
        path: string,
        out: TOut,
        outOffset?: number,
        throwOnError?: boolean,
    ) => Promise<TOut> = XxHash128Stream.digestFileTo

    Read a file and write its 128-bit content hash into out.

    Type Declaration

      • <TOut extends Uint8Array = Buffer>(
            path: string,
            out: TOut,
            outOffset?: number,
            throwOnError?: boolean,
        ): Promise<TOut>
      • Type Parameters

        • TOut extends Uint8Array = Buffer

        Parameters

        • path: string

          File path.

        • out: TOut

          Destination buffer.

        • OptionaloutOffset: number

          Byte offset into out. Default 0.

        • OptionalthrowOnError: boolean

          If false, writes a zeroed digest on error. Default true.

        Returns Promise<TOut>