shelljs/shelljs

how to read console input

Open

#18 opened on 2012年6月11日

GitHub で見る
 (16 comments) (0 reactions) (0 assignees)JavaScript (14,062 stars) (777 forks)batch import
featurehelp wanted

説明

following code snipper works using 'node' command, but not works using 'sjs' command

process.stdin.on('data', function (chunk) {
  process.stdout.write('data: ' + chunk);
}).resume();

コントリビューターガイド

how to read console input · shelljs/shelljs#18 | Good First Issue