0.1.0 • Published 6 years ago

node-macos-progress v0.1.0

Weekly downloads
2
License
MIT
Repository
-
Last release
6 years ago

node-macos-progress

A node package for update file progress on macOS

Example

const macProgress = require('macProgress');
const p = new macProgress.FileProgress('/Users/wsy/Downloads/text.txt', 100);
let current = 0;
const flag = setInterval(() => {
  console.log('update...', p);
  current += 10;
  p.update(current);
  if (current === 100) {
    clearInterval(flag);
  }
}, 1000);