hyperboria / peers

A geographically sorted list of public peering credentials for joining Hyperboria
196 stars 74 forks source link

The example code isn't working #147

Closed kaotisk-hund closed 5 years ago

kaotisk-hund commented 5 years ago

I just run the example in README.md after installing hyperboria-peers successfully. I get the following error. console.log(Peers.peers.NA.us.california); ^

TypeError: Cannot read property 'us' of undefined at Object. (/home/kaotisk/hype-peers/new.js:12:27) at Module._compile (module.js:570:32) at Object.Module._extensions..js (module.js:579:10) at Module.load (module.js:487:32) at tryModuleLoad (module.js:446:12) at Function.Module._load (module.js:438:3) at Module.runMain (module.js:604:10) at run (bootstrap_node.js:394:7) at startup (bootstrap_node.js:149:9) at bootstrap_node.js:509:3

kpcyrd commented 5 years ago

I think the folder name was changed and this should be:

console.log(Peers.peers.na.us.california);

if this doesn't work as well, check the output of:

console.log(Peers.peers.na);
kaotisk-hund commented 5 years ago

Yeap, it works with small letters. Both lines work.