2020-01-13から1日間の記事一覧
標準入力の方法をメモです。 2つの方法を記載します。 process.argvを使う readlineを使う process.argvを使う console.log(process.argv); 以下のように引数を指定して実行すると $node sample.js aaa bbb ccc 結果は以下のようになります。 node(実行ファ…
標準入力の方法をメモです。 2つの方法を記載します。 process.argvを使う readlineを使う process.argvを使う console.log(process.argv); 以下のように引数を指定して実行すると $node sample.js aaa bbb ccc 結果は以下のようになります。 node(実行ファ…