Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- process.stdin
- .on('data', (chunk) => {
- console.log(`Chunk read: (${chunk.length}) "${chunk.toString()}"`);
- })
- .on('end', () => process.stdout.write('End of stream'));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement