code: function normalizeOptions(pattern, options) {
  	pattern = [].concat(pattern || '');
  
  	options.base = options.base || path.resolve(options.cwd, globParent(pattern[0]));
  	options.bustCache = options.bustCache || false;
  
  	options.mapper = (options.mapper || mapper).bind(null, options);
  	options.reducer = (options.reducer || reducer).bind(null, options);
  	options.keygen = (options.keygen || keygen).bind(null, options);
  
  	return options;
  }
docs: API