MCPcopy Create free account
hub / github.com/NathanPB/progress.js / initMultiBar

Function initMultiBar

src/index.ts:21–30  ·  view source on GitHub ↗
({ bars, template, tokens, stream }: {
  bars: ProgressBar[],
  template: string,
  tokens: TokenDict,
  stream: WriteStream
})

Source from the content-addressed store, hash-verified

19}
20
21export function initMultiBar({ bars, template, tokens, stream }: {
22 bars: ProgressBar[],
23 template: string,
24 tokens: TokenDict,
25 stream: WriteStream
26}) {
27 const renderer = new TTYMultiProgressBarRenderer(template, tokens, bars, stream)
28 bars.forEach(bar => renderer.attach(self => new RenderTrigger(self, bar, Events.TICK)))
29 return renderer
30}

Callers 2

index.test.tsFile · 0.90
multi-simple.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected