Simple way of prompting user for options in Node.js.
JavaScript
Switch branches/tags
Nothing to show
Pull request Compare This branch is 37 commits behind tomas:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
examples
.gitignore
.npmignore
README.md
index.js
package.json

README.md

Reply

Simple way of getting user input. Prompt is really awesome but it ships with too many stuff I don't really need.

  var reply = require('reply');
  var opts = {
    username: {
      message: 'Please type in your username.'
    },
    password: {
      message: 'Password, please.',
      type: "password",
      regex: /(\w{6}/,
      error: "Six chars minimum. Try again."
    }
  }
  reply.get(opts, function(err, answers){
    console.log(answers);
  });

(c) 2012 Tomás Pollak for Fork Ltd. MIT license.