index.js
function NormalizePkg(options) {
  if (!(this instanceof NormalizePkg)) {
    return new NormalizePkg(options);
  }

  this.options = options || {};
  this.schema = schema(this.options);
  this.data = this.schema.data;
  this.schema.on('warning', this.emit.bind(this, 'warning'));
  this.schema.on('error', this.emit.bind(this, 'error'));

  this.schema.union = function(key, config, arr) {
    config[key] = utils.arrayify(config[key]);
    config[key] = utils.union([], config[key], utils.arrayify(arr));
  };
}
function NormalizePkg(options) {
  if (!(this instanceof NormalizePkg)) {
    return new NormalizePkg(options);
  }

  this.options = options || {};
  this.schema = schema(this.options);
  this.data = this.schema.data;
  this.schema.on('warning', this.emit.bind(this, 'warning'));
  this.schema.on('error', this.emit.bind(this, 'error'));

  this.schema.union = function(key, config, arr) {
    config[key] = utils.arrayify(config[key]);
    config[key] = utils.union([], config[key], utils.arrayify(arr));
  };
}
function NormalizePkg ( options ) { if ( ! ( this instanceof NormalizePkg ) ) { return new NormalizePkg ( options ) ; } this . options = options || { } ; this . schema = schema ( this . options ) ; this . data = this . schema . data ; this . schema . on ( 'warning' , this . emit . bind ( this , 'warning' ) ) ; this . schema . on ( 'error' , this . emit . bind ( this , 'error' ) ) ; this . schema . union = function ( key , config , arr ) { config [ key ] = utils . arrayify ( config [ key ] ) ; config [ key ] = utils . union ( [ ] , config [ key ] , utils . arrayify ( arr ) ) ; } ; }
Create an instance of `NormalizePkg` with the given `options`.

```js
var config = new NormalizePkg();
var pkg = config.normalize({
author: {
name: 'Jon Schlinkert',
url: 'https://github.com/jonschlinkert'
}
});
console.log(pkg);
//=> {author: 'Jon Schlinkert (https://github.com/jonschlinkert)'}
```
@param {Object} `options`
@api public
Create an instance of NormalizePkg with the given options .