lib/index.js
function(user_opts) {

    // Set options
    this.options = _.defaults(user_opts, this.options)

    // Set title
    // this.options.title = chalk.bold(this.options.title)

    // Without this, we would only get streams once enter is pressed
    process.stdin.setRawMode(true)
    // Resume stdin in the parent process (node app won't quit all by itself
    // unless an error or process.exit() happens)
    process.stdin.resume()
  }
function(user_opts) {

    // Set options
    this.options = _.defaults(user_opts, this.options)

    // Set title
    // this.options.title = chalk.bold(this.options.title)

    // Without this, we would only get streams once enter is pressed
    process.stdin.setRawMode(true)
    // Resume stdin in the parent process (node app won't quit all by itself
    // unless an error or process.exit() happens)
    process.stdin.resume()
  }
function ( user_opts ) { // Set options this . options = _ . defaults ( user_opts , this . options ) // Set title // this.options.title = chalk.bold(this.options.title) // Without this, we would only get streams once enter is pressed process . stdin . setRawMode ( true ) // Resume stdin in the parent process (node app won't quit all by itself // unless an error or process.exit() happens) process . stdin . resume ( ) }
Set options and capture user input

@method init
@param {Object} options Options
Set options and capture user input