1.1.1 • Published 5 years ago

node-qetag v1.1.1

Weekly downloads
14
License
-
Repository
github
Last release
5 years ago

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 list
let 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);
    })