lib/schema/environment.js
function Environment(options) {
  if (!(this instanceof Environment)) {
    return new Environment(options);
  }

  // defaults
  options = lodash.defaults(options || {}, {
    setup: true,
  });

  this.env = jjv();
  this.env.defaultOptions.checkRequired = true;
  this.env.defaultOptions.useDefault = true;
  this.env.defaultOptions.useCoerce = false;
  this._jjve = jjve(this.env);

  if (options.setup) this.setup();
}
function Environment(options) {
  if (!(this instanceof Environment)) {
    return new Environment(options);
  }

  // defaults
  options = lodash.defaults(options || {}, {
    setup: true,
  });

  this.env = jjv();
  this.env.defaultOptions.checkRequired = true;
  this.env.defaultOptions.useDefault = true;
  this.env.defaultOptions.useCoerce = false;
  this._jjve = jjve(this.env);

  if (options.setup) this.setup();
}
function Environment ( options ) { if ( ! ( this instanceof Environment ) ) { return new Environment ( options ) ; } // defaults options = lodash . defaults ( options || { } , { setup : true , } ) ; this . env = jjv ( ) ; this . env . defaultOptions . checkRequired = true ; this . env . defaultOptions . useDefault = true ; this . env . defaultOptions . useCoerce = false ; this . _jjve = jjve ( this . env ) ; if ( options . setup ) this . setup ( ) ; }
Initialize a new `Environment`.

@param {Object} options
@api public
Initialize a new Environment .