Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stagas/task-progress
Shows native OS task progress for node apps.
https://github.com/stagas/task-progress
Last synced: 13 days ago
JSON representation
Shows native OS task progress for node apps.
- Host: GitHub
- URL: https://github.com/stagas/task-progress
- Owner: stagas
- Created: 2013-03-19T10:06:08.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-03-19T11:19:23.000Z (over 11 years ago)
- Last Synced: 2024-04-08T15:45:38.899Z (7 months ago)
- Language: JavaScript
- Size: 105 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# task-progress
Shows native OS task progress for node apps (wherever supported).
Could be used for downloaders, load indicators or any kind of metrics.
## Installing
```sh
$ npm install task-progress
```## Using
Just one function, `progress(n)` where `n` is a number in the range **0-100**.
It removes itself when passed anything outside that range.
```js
var progress = require('task-progress')process.title = 'My app'
progress(15) // changes title to: `{15%} My app`
progress(100) // resets title back to: `My app`
```## License
MIT