https://github.com/willscott/progressbar-stream
Show a progress bar for how a stream piping is going
https://github.com/willscott/progressbar-stream
Last synced: 9 months ago
JSON representation
Show a progress bar for how a stream piping is going
- Host: GitHub
- URL: https://github.com/willscott/progressbar-stream
- Owner: willscott
- Created: 2015-04-13T22:13:35.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-04-30T18:49:28.000Z (about 11 years ago)
- Last Synced: 2025-08-07T01:23:04.102Z (10 months ago)
- Language: JavaScript
- Size: 129 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
ProgressBar-Stream
==================
>
> Wrapper for [progress](https://www.npmjs.com/package/progress) and [progress-stream](https://www.npmjs.com/package/progress-stream)
>
Render an ascii progress bar to display stream progress.
Installation
------------
```
npm install progressbar-stream
```
Usage
-----
```javascript
var progress = require('progressbar-stream');
var input = fs.createReadStream('file.txt');
var length = fs.statSync('file.txt').size;
input.pipe(progress({total: length}).pipe(...);
```
Usage on Object Streams
-----------------------
```javascript
var progress = require('progressbar-stream');
var inputs = [1, 2, 3, 4, 5, 6, 7];
from(inputs).pipe(progress({chunks: inputs.length})).pipe(...);
```