node-qetag
A multi-thread utility of NodeJS, which calculate the hash value of the file on the qiniu cloud storage (also the etag value when the file is downloaded).
Base
Base on the qetag, which is the official version.
Install
$ npm i node-qetag --save
API
const qetag = require('node-qetag'); let fileList = []; // Your file listlet threads = 8 - 1; // Default is the number of your device's logical processors and minus 1 qetag(fileList, threads) .then(results => { console.log(results); }) .catch(err => { console.log(err); })