code: function csv(method, str, options) {
    if (typeof str !== 'string') {
      options = str;
      str = method;
      method = null;
    }
    if (typeof str !== 'string') {
      throw new TypeError('expected csv to be a string');
    }
  
    var opts = extend({renderer: 'json'}, options);
    method = method || opts.renderer;
  
    var parser = new Parser(options);
    var renderer = new Renderer(options);
  
    var datagrid = parser.parse(str);
    return renderer.render(method, datagrid);
  }
docs: Parse a string of CSV to a datagrid and render it using the specified [renderer]().
  The `.json` renderer is used by default.
  
  ```js
  var str = `
  id,fruit,vegetable
  1,apple,carrot
  2,orange,corn
  3,banana,potato`;
  
  var res = csv(str, {headers: {included: true}});
  console.log(res);
  // results in:
  // [{"id":"1","fruit":"apple","vegetable":"carrot"},
  // {"id":"2","fruit":"orange","vegetable":"corn"},
  // {"id":"3","fruit":"banana","vegetable":"potato"}]
  ```
  @param {String} `method` The name of the renderer method to use, or a string of CSV. If CSV, the `.json` method will be used.
  @param {String|Object} `str` String of CSV or options.
  @param {Object} `options`
  @return {String}
  @api public