lib/view.js
function View (name) {
  if (!(this instanceof View)) {
    return new View(name);
  }
  this.name = name;
  this.config = utils.clone(config);
  this.config.pathname += '/_view/' + this.name;
}
function View (name) {
  if (!(this instanceof View)) {
    return new View(name);
  }
  this.name = name;
  this.config = utils.clone(config);
  this.config.pathname += '/_view/' + this.name;
}
function View ( name ) { if ( ! ( this instanceof View ) ) { return new View ( name ) ; } this . name = name ; this . config = utils . clone ( config ) ; this . config . pathname += '/_view/' + this . name ; }
View constructor. Create an instance of a view associated with a couchdb view in the npm registry.

```js
var view = new View('dependedUpon');
```

@param {String} `name` Name of couchdb view to use.
@returns {Object} instance of `View`
@api public
View constructor . Create an instance of a view associated with a couchdb view in the npm registry .