code: function componentFileToMetadatas(type, json) {
    var results = [],
    allDeps = _.merge(json.dependencies || {}, json.devDependencies || {}, json.optionalDependencies || {});
  
    _.each(Object.keys(allDeps), function(dependency) {
      results.push({
        name: dependency,
        type: type,
        version: allDeps[dependency]
      });
    });
  
    return results;
  }
docs: /*
  Takes either a bower.json or package.json and returns some metadata about each object
  
  Input: (bower.json)
  { name: "my-bower-component", dependencies: {"foo" : "1.2.3"}, devDependencies: {"bar" : "4.5.6"} }
  
  Output:
  [{
  "name": "foo",
  "type": "bower",
  "version": "1.2.3"
  },{
  "name": "bar",
  "type": "bower",
  "version": "4.5.6"
  }]