lib/models/repo.js
function Repo (name, store) {
  if (!(this instanceof Repo)) {
    return new Repo(name);
  }
  Base.call(this, store);
  this.is('repo');
  this.name = name;
  this.use(downloads());
}
function Repo (name, store) {
  if (!(this instanceof Repo)) {
    return new Repo(name);
  }
  Base.call(this, store);
  this.is('repo');
  this.name = name;
  this.use(downloads());
}
function Repo ( name , store ) { if ( ! ( this instanceof Repo ) ) { return new Repo ( name ) ; } Base . call ( this , store ) ; this . is ( 'repo' ) ; this . name = name ; this . use ( downloads ( ) ) ; }
Repo constructor. Create an instance of an npm repo by repo name.

```js
var repo = new Repo('micromatch');
```

@param {String} `name` Name of the npm repo to get information about.
@param {Object} `store` Optional cache store instance for caching results. Defaults to a memory store.
@api public
Repo constructor . Create an instance of an npm repo by repo name .