code: function ensureAvailable(packageMap, pkg, identifierKey) {
  
    var value = pkg[identifierKey];
  
    if (value in packageMap) {
      throw new Error('package with ' + identifierKey + ' <' + value + '> already defined');
    }
  }
docs: /////// helpers ////////////////////////////