inspect.js
function normalize(options){
    options = options || {};

    options.printfn = options.printfn || function(obj) {
      console.dir(obj, {colors: true});
    };

   if (!options.accept) {
      if (options.include) {
         options.accept = function(propKey) { return options.include.indexOf(propKey) >= 0; };
      }
      else if (options.exclude){
         options.accept = function(propKey) { return options.exclude.indexOf(propKey) < 0; };
      }
      else {
         options.accept = function() { return true; };
      }
   }

   options.fileFilter = fileFilter(options.filter);

   return options;
}
function normalize(options){
    options = options || {};

    options.printfn = options.printfn || function(obj) {
      console.dir(obj, {colors: true});
    };

   if (!options.accept) {
      if (options.include) {
         options.accept = function(propKey) { return options.include.indexOf(propKey) >= 0; };
      }
      else if (options.exclude){
         options.accept = function(propKey) { return options.exclude.indexOf(propKey) < 0; };
      }
      else {
         options.accept = function() { return true; };
      }
   }

   options.fileFilter = fileFilter(options.filter);

   return options;
}
function normalize ( options ) { options = options || { } ; options . printfn = options . printfn || function ( obj ) { console . dir ( obj , { colors : true } ) ; } ; if ( ! options . accept ) { if ( options . include ) { options . accept = function ( propKey ) { return options . include . indexOf ( propKey ) >= 0 ; } ; } else if ( options . exclude ) { options . accept = function ( propKey ) { return options . exclude . indexOf ( propKey ) < 0 ; } ; } else { options . accept = function ( ) { return true ; } ; } } options . fileFilter = fileFilter ( options . filter ) ; return options ; }
Normalize an `options` dictionary.

@param {Object} options
Normalize an options dictionary .