MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / createProgressBar

Function createProgressBar

cli/release/index.js:303–307  ·  view source on GitHub ↗
(percentage, width = 30)

Source from the content-addressed store, hash-verified

301}
302
303function createProgressBar(percentage, width = 30) {
304 const filled = Math.round((width * percentage) / 100)
305 const empty = width - filled
306 return '[' + '█'.repeat(filled) + '░'.repeat(empty) + ']'
307}
308
309async function downloadBinary(version) {
310 const platformKey = `${process.platform}-${process.arch}`

Callers 1

downloadBinaryFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected