An open API service indexing awesome lists of open source software.

https://github.com/djblue/node-transfer-bar

Simple down/up transfer/progress bar.
https://github.com/djblue/node-transfer-bar

Last synced: 5 months ago
JSON representation

Simple down/up transfer/progress bar.

Awesome Lists containing this project

README

          

# node-transfer-bar

[![Build Status](https://travis-ci.org/djblue/node-transfer-bar.svg?branch=master)](https://travis-ci.org/djblue/node-transfer-bar)

Basic progress bar focused on downloads and uploads; inspired by pacman
(arch linux package manager) and
[progress](https://www.npmjs.com/package/progress). This module is more
specialized than progress, because it assumes your unit of progress is
always a byte.

# Usage

For basic usage, do:

```javascript
var bar = require('transfer-bar');

var b = bar(/* total bytes */);
something.on('data', function (data) {
b.update(data.length);
});
```

# Test

To run all the tests, do:

npm test