node-qetag

1.1.1 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i node-qetag

Weekly Downloads

0

Version

1.1.1

License

none

Unpacked Size

8.31 kB

Total Files

9

Last publish

Collaborators

  • bugkun