Asynchronously generates deterministic checksums of .tar or .tar.gz files.
Using npm:
$ npm install tar-checksum --save
const tarChecksum = require('tar-checksum');
tarChecksum(Buffer|ReadableStream, (err, file) => {
// handle results
})
tarChecksum(Buffer|ReadableStream)
.then(checksum => {
// handle results
})
.catch(err => {
// handle err
})
try {
let checksum = await tarChecksum(Buffer|ReadableStream)
} catch (err) {
// handle err
}