MCPcopy Create free account
hub / github.com/ReactTooltip/react-tooltip / handleData

Function handleData

benchmarks/run-scaling-series.mjs:80–89  ·  view source on GitHub ↗
(chunk)

Source from the content-addressed store, hash-verified

78
79 let pending = ''
80 const handleData = (chunk) => {
81 pending += chunk.toString()
82 const lines = pending.split('\n')
83 pending = lines.pop() ?? ''
84 lines.forEach((line) => {
85 if (line.length > 0) {
86 console.log(`${prefix} ${line}`)
87 }
88 })
89 }
90
91 stream.on('data', handleData)
92

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected