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

Function streamToString

cli/release-staging/index.js:207–214  ·  view source on GitHub ↗
(stream)

Source from the content-addressed store, hash-verified

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

Callers 1

getLatestVersionFunction · 0.70

Calls 2

onMethod · 0.65
resolveFunction · 0.50

Tested by

no test coverage detected