MCPcopy Create free account
hub / github.com/RioArisk/claudecode_api_RemoteControl / formatTtyInputChunk

Function formatTtyInputChunk

lib/logger.js:228–231  ·  view source on GitHub ↗
(chunk)

Source from the content-addressed store, hash-verified

226}
227
228function formatTtyInputChunk(chunk) {
229 const buf = Buffer.isBuffer(chunk) ? chunk : Buffer.from(chunk);
230 return `len=${buf.length} hex=${buf.toString('hex')} base64=${buf.toString('base64')} utf8=${JSON.stringify(buf.toString('utf8'))}`;
231}
232
233module.exports = {
234 initLogger,

Callers 1

attachTtyForwardersFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected