UNPKG

etag-hash

Version:

Es6 class that generates ETag using the same algorithm as S3 via MD5 sum.

11 lines (10 loc) 309 B
export declare class ETagHash { private partSizeInBytes; private sums; private part; private bytes; constructor(partSizeInMb?: number); update(chunk: Buffer): this; digest(): string; } export declare const createHash: (...args: ConstructorParameters<typeof ETagHash>) => ETagHash;