# downloading

> Progress bar file download.

Latest version **0.0.1** (published 2019-05-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install downloading
pnpm add downloading
yarn add downloading
bun add downloading
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2019-05-06 |
| First published | 2019-05-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 31.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | rickylawson |
| Keywords | download, progress, downloading, gulfstream |

## Links

- npm: https://www.npmjs.com/package/downloading
- Repository: https://github.com/rickylawson/downloading
- Homepage: https://gulfstream.to
- Issues: https://github.com/rickylawson/downloading/issues
- npm.io page: https://npm.io/package/downloading

## Alternatives

- [byte-size](https://npm.io/package/byte-size.md) — 2.1M weekly downloads
- [speed-limiter](https://npm.io/package/speed-limiter.md) — 16.0K weekly downloads
- [@powersync/node](https://npm.io/package/@powersync/node.md) — 10.9K weekly downloads
- [@ledgerhq/coin-cardano](https://npm.io/package/@ledgerhq/coin-cardano.md) — 1.0K weekly downloads
- [@jayesol/jayeson.lib.streamfinder](https://npm.io/package/@jayesol/jayeson.lib.streamfinder.md) — 1.0K weekly downloads

## Recent versions

- 0.0.1 (latest) — 2019-05-06

## README

<p align="center">
    <img src="https://raw.githubusercontent.com/rickylawson/downloading/master/downloading.gif">
</p>

## What is `downloading`?

Progress bar file download.

Original package: https://www.npmjs.com/package/progress

Differences: Added `title`

## Installation

```bash
npm i downloading
```

## Usage

Import the library in your code:

```js
const Downloading = require('downloading');

let bar = new Downloading(':bar [:title] :percent', {
    title: 'Downloading file puppy.png',
    width: 50,
    total: 100
});
```

### Example

```js
const Downloading = require('downloading');

let bar = new Downloading(':bar [:title] :percent', {
    title: 'Download archive with beautiful puppies.',
    width: 50,
    total: 100
});

let tick = setInterval(() => {
    bar.tick(Math.random());
    if (bar.curr >= bar.total - 1) {
        clearInterval(tick);
        bar.tick(1, {
            title: 'Archive downloaded'
        });
    }
}, 300);
```

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