🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

exponential-progress

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

exponential-progress

Simulate progress using an exponential function.

2.0.0
latest
Source
npm
Version published
Weekly downloads
4
Maintainers
1
Weekly downloads
 
Created
Source

exponential-progress

Simulate progress using an exponential function.

Install

$ npm install exponential-progress

Usage

import ExponentialProgress from "exponential-progress";

const progress = new ExponentialProgress(10000);

setTimeout(() => {
  console.log(progress.progress);
}, 500);

API

ExponentialProgress(time)

time

Type: number

Average time in milliseconds for task to complete.

ExponentialProgress.start()

Sets the progress starting point to now. (optional: if not called, the moment of instance creation will be used)

ExponentialProgress.progress

The current progress from 0 to 1.

Keywords

simulate

FAQs

Package last updated on 14 Feb 2020

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