SOURCE

const readline = require('readline');
 const r = readline.createInterface({
    input:process.stdin,
    output:process.stdout
})
r.question('',(name) => {
    console.log(name);
    r.close()
})
console 命令行工具 X clear

                    
>
console