using js node stdin code example
Example: node print stdin
const process = require("process")
process.stdin.on('data', data => {
console.log(data.toString())
})
const process = require("process")
process.stdin.on('data', data => {
console.log(data.toString())
})