带有进度条的MD5文件
要求
节点:^ 6.0.0
安装
npm install --save md5file-with-progressbar
用法
const md5 = require('md5file-with-progressbar');
let instance = new md5('/Users/anybody/Downloads/bigfile.zip');
instance.on('progress', p => {
console.log(`current percnet ${p}%`);
});
instance.on('complete', v => {
console.log(`file md5 is ${v}`);
});
instance.on('statusChanged', s => {
console.log(`The new s
评论0
最新资源