node-macos-progress

0.1.0 • Public • Published

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

/node-macos-progress/

    Package Sidebar

    Install

    npm i node-macos-progress

    Weekly Downloads

    1

    Version

    0.1.0

    License

    MIT

    Unpacked Size

    23.4 kB

    Total Files

    22

    Last publish

    Collaborators

    • 0nese7en