Package Exports
- etag-hash
- etag-hash/esm/index.js
- etag-hash/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (etag-hash) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
ETag Hash
Es6 class that generates ETag using the same algorithm as S3 via MD5 sum.
Useful for verifying Amazon S3 multi-part uploads.
Installation
npm install etag-hashUsage
const createHash = require('etag-hash').createHash;
const etag = createHash().update(contents).digest();ETags compatible with s3, API similar to the crypto module to be compatible with streams. Thanks to the author of this post for the breakdown of the algorithm.