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

useless-progress

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

useless-progress

Produce a useless automatic scrolling bar that grows on its own.

1.0.2
latest
Version published
Maintainers
1
Created

useless-progress

Produce a useless automatic scrolling bar that grows on its own.

Download

npm i useless-progress

example

import Progress from 'useless-progress';

const progress = new Progress({
  onprogress: function (progress) {
    console.log(progress)
  }
})
progress.start()

/**
 * console.log
 * 0
 * 0.007653891978612326
 * 0.015249201894804387
 * 0.0227863781293538
 * 0.030265865631180278
 * ...
 * 0.9997831489834735
 * 0.9997848087377296
 * 0.9997864557884056
 * 0.9997880902327339
 */

config

AttractivedescriptionTypedefault
onprogressCallback when progress increases,parameter is the current progressfunction-
extremeTimeTime from 0 to 0.99 (ms)number60000
frequencyFrequency of progress increasenumber200

method

Namedescription
start()
end()Stop working and set progress to 1
getProgress()
setProgress()

FAQs

Package last updated on 12 Apr 2023

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