MCPcopy Create free account
hub / github.com/npkgz/cli-progress / increment

Method increment

lib/generic-bar.js:204–214  ·  view source on GitHub ↗
(arg0 = 1, arg1 = {})

Source from the content-addressed store, hash-verified

202 // increment(delta, payload)
203 // increment(payload)
204 increment(arg0 = 1, arg1 = {}){
205 // increment([payload]) => step=1
206 // handle the use case when `step` is omitted but payload is passed
207 if (typeof arg0 === 'object') {
208 this.update(this.value + 1, arg0);
209
210 // increment([step=1], [payload={}])
211 }else{
212 this.update(this.value + arg0, arg1);
213 }
214 }
215
216 // get the total (limit) value
217 getTotal(){

Callers 5

runMultibarFunction · 0.80
Example5Function · 0.80
example-logging.jsFile · 0.80
Example2Function · 0.80

Calls 1

updateMethod · 0.95

Tested by

no test coverage detected