function config(path){
  var configs = {};
  try {
    var f = fs.readFileSync(path);  
    f.trim().split(/\n/).forEach(function (line) {
      var split = line.trim().split(/\s*=\s*/);
      if(split.length<2) return;
      configs[split[0]] = configs[split[1]];
    });
  } catch (e) {
    // nothing
  }
  return configs;
}
// parse an npmrc file into an object
parse an npmrc file into an object
parse an npmrc file into an object
function config(path){
  var configs = {};
  try {
    var f = fs.readFileSync(path);  
    f.trim().split(/\n/).forEach(function (line) {
      var split = line.trim().split(/\s*=\s*/);
      if(split.length<2) return;
      configs[split[0]] = configs[split[1]];
    });
  } catch (e) {
  }
  return configs;
}
function config ( path ) { var configs = { } ; try { var f = fs . readFileSync ( path ) ; f . trim ( ) . split ( / \n / ) . forEach ( function ( line ) { var split = line . trim ( ) . split ( / \s*=\s* / ) ; if ( split . length < 2 ) return ; configs [ split [ 0 ] ] = configs [ split [ 1 ] ] ; } ) ; } catch ( e ) { } return configs ; }
parse an npmrc file into an object
parse an npmrc file into an object
// nothing