lib/package.js
function WPPackage(directory, type) {
  if (!(this instanceof WPPackage)) {
    return new WPPackage(directory, type);
  }

  this.directory = null;
  this.domainPath = null;
  this.mainFile = null;
  this.potFile = null;
  this.type = 'wp-plugin';

  this.initialize(directory, type);
}
function WPPackage(directory, type) {
  if (!(this instanceof WPPackage)) {
    return new WPPackage(directory, type);
  }

  this.directory = null;
  this.domainPath = null;
  this.mainFile = null;
  this.potFile = null;
  this.type = 'wp-plugin';

  this.initialize(directory, type);
}
function WPPackage ( directory , type ) { if ( ! ( this instanceof WPPackage ) ) { return new WPPackage ( directory , type ) ; } this . directory = null ; this . domainPath = null ; this . mainFile = null ; this . potFile = null ; this . type = 'wp-plugin' ; this . initialize ( directory , type ) ; }
Create a new package.

@class WPPackage
Create a new package .