Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

downloading

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

downloading

Progress bar file download.

  • 0.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
7
increased by250%
Maintainers
1
Weekly downloads
 
Created
Source

What is downloading?

Progress bar file download.

Original package: https://www.npmjs.com/package/progress

Differences: Added title

Installation

npm i downloading

Usage

Import the library in your code:

const Downloading = require('downloading');

let bar = new Downloading(':bar [:title] :percent', {
    title: 'Downloading file puppy.png',
    width: 50,
    total: 100
});

Example

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);

Keywords

FAQs

Package last updated on 06 May 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc