index.js
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);
}
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);
}
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 ) ; }
Install the given `type` of dependencies,
with the specified `flags`
Install the given type of dependencies with the specified flags