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

Function streamToString

freebuff/cli/release/index.js:206–213  ·  view source on GitHub ↗
(stream)

Source from the content-addressed store, hash-verified

204}
205
206function streamToString(stream) {
207 return new Promise((resolve, reject) => {
208 let data = ''
209 stream.on('data', (chunk) => (data += chunk))
210 stream.on('end', () => resolve(data))
211 stream.on('error', reject)
212 })
213}
214
215function getCurrentVersion() {
216 try {

Callers 1

getLatestVersionFunction · 0.70

Calls 2

onMethod · 0.65
resolveFunction · 0.50

Tested by

no test coverage detected