Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const { Transform } = require('stream')
- const ts = Transform({ decodeStrings: false })
- ts._write = (chunk, enc, next) => {
- ts.push(chunk.toUpperCase())
- next()
- }
- process.stdin.setEncoding('utf8')
- process.stdin.pipe(ts).pipe(process.stdout)
Add Comment
Please, Sign In to add comment