code: function deps(type, flags, names, cb) {
    names = flatten([].slice.call(arguments, 2));
    cb = names.pop();
  
    if (type && names.length === 0) {
      names = keys(type);
    }
  
    if (!names.length) {
      cb();
      return;
    }
  
    yarn.add(arrayify(flags).concat(names), cb);
  }
docs: Install the given `type` of dependencies,
  with the specified `flags`