前提となる仕様 “name”, “email”, “age” のフィールドをターミナルで順番に入力させる 結果をJSONで出力する 出力先は -t オプションで指定する (指定がなければ標準出力する) 使うもの opts via mazzarelli / js-opts / wiki / Home — Bitbucket readline via Readline Node.js v0.10.10 Manual & Documentation サンプルコード #!/usr/bin/env node var opts = require("opts"), fs = require("fs"), rl = require("readline").createInterface(process.stdin, process.stdout); var app = { stack : {}, ke