meetcode
7
const { PassThrough } = require('stream');
let bytes = 0;
const tap = new PassThrough();
tap.on('data', (c) => { bytes += c.length; });
process.stdin.pipe(tap).resume();
process.stdin.on('end', () => console.log(bytes));
const { PassThrough } = require('stream');
let bytes = 0;
const tap = new PassThrough();
tap.on('data', (c) => { bytes += c.length; });
process.stdin.pipe(tap).resume();
process.stdin.on('end', () => console.log(bytes));