New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
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
  • Socket score

Version published
Maintainers
1
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

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

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