# macos-progress

> A node package for update file progress on macOS

Latest version **0.1.3** (published 2018-12-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install macos-progress
pnpm add macos-progress
yarn add macos-progress
bun add macos-progress
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.3 |
| Published | 2018-12-16 |
| First published | 2018-10-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 25.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | yes |
| GitHub stars | 5 |
| Author | 0neSe7en |
| Maintainers | 0nese7en |
| Keywords | macos, file, progress, download, electron |

## Links

- npm: https://www.npmjs.com/package/macos-progress
- Repository: https://github.com/0neSe7en/node-macos-progress
- npm.io page: https://npm.io/package/macos-progress

## Dependencies (2)

- [bindings](https://npm.io/package/bindings.md) ^1.3.0
- [node-addon-api](https://npm.io/package/node-addon-api.md) ^1.5.0

## Alternatives

- [unionfs](https://npm.io/package/unionfs.md) — 2.2M weekly downloads
- [path-starts-with](https://npm.io/package/path-starts-with.md) — 35.9K weekly downloads
- [redzip](https://npm.io/package/redzip.md) — 1.2K weekly downloads
- [vscode-anymatch](https://npm.io/package/vscode-anymatch.md) — 848 weekly downloads
- [@ledgerhq/coin-filecoin](https://npm.io/package/@ledgerhq/coin-filecoin.md) — 793 weekly downloads

## Recent versions

- 0.1.3 (latest) — 2018-12-16
- 0.1.2 — 2018-10-23
- 0.1.0 — 2018-10-23

## README

# node-macos-progress

> A node package for update file progress on macOS

[![NPM](https://nodei.co/npm/macos-progress.png)](https://www.npmjs.com/package/macos-progress)

## Example

```javascript
const macProgress = require('macos-progress');
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);

```

## TODO

- [ ] Callback when user cancel a progress.
- [ ] Support `progress.cancel` or `progress.unpublish`
- [ ] Can get current complete unit count from progress.
- [ ] Persist progress when application is quit.

---
_Source: https://npm.io/package/macos-progress · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
