(chunk)
| 226 | } |
| 227 | |
| 228 | function 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 | |
| 233 | module.exports = { |
| 234 | initLogger, |
no outgoing calls
no test coverage detected