1.1.1 • Published 4 years ago

stream-to-etag v1.1.1

Weekly downloads
11
License
SEE LICENSE IN LI...
Repository
github
Last release
4 years ago

Stream to ETag

Calculates Etag/S3 MD5 sum given a readable stream. Uses the same algorithm that S3 uses to calculate the ETag.

This is especially useful for verifying large files uploaded using multipart S3 API, enabling use of createReadStream to keep memory usage low.

Installation

npm install stream-to-etag

Usage

    const etag = await stream2etag(createReadStream(file));

ETags compatible with s3, thanks to the author of this post for the breakdown of the algorithm.

1.1.1

4 years ago

1.1.0

4 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago