docs: function flatten(pkg, dependencies = {}) {
    _.forEach(pkg.dependencies, (dep, id) => {
      if (!_.has(dependencies, id)) {
        // Store current dependency...
        dependencies[id] = dep;
  
        // ... and add transitive dependencies
        _.extend(dependencies, flatten(dep, dependencies));
      }
    });
  
    return dependencies;
  }