node.jsでテキストファイルを1行ずつ読み込む
readlineモジュールを使うと、テキストファイルを1行ずつ読み込むことができます。 readlineモジュールの使い方 readlineモジュールを読み込みます。 const readline = require(‘ …
readlineモジュールを使うと、テキストファイルを1行ずつ読み込むことができます。 readlineモジュールの使い方 readlineモジュールを読み込みます。 const readline = require(‘ …
指定したフォルダ内の画像ファイルの画像サイズを一覧表示するプログラムです。 GitHub – gesource/imagesize.js Requirement image-size インストール image …
node.jsで標準入力を使ったよくある処理をまとめました。 入力文字列を読み取る 入力された文字列を読み取り、そのまま出力します。 入力例 test1 test2 test3 出力例 test1 test2 test3 …
node.jsのchild_process.exec()やexecSyncを使って、OSのコマンドを実行する方法を紹介します。 child_process.exec(command[, options][, callba …
Continue reading ‘node.jsのchild_process.exec()やexecSyncでOSのコマンドを実行する’ »