ETag Stream
A Transform stream that calculates Etag/S3 MD5 sum. 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 etag-stream
Usage
const ETagStream = ;const stream = ; let result = null;stream ;;
ETags compatible with s3, thanks to the author of this post for the breakdown of the algorithm.