OpenBookPrices / country-data

Country related data such as ISO codes, currencies etc
MIT License
512 stars 166 forks source link

Country data is missing after install #50

Closed colllin closed 8 years ago

colllin commented 8 years ago

Have you ever seen this? I npm install --save country-data then var countries = require('country-data').countries;, and countries.all looks like {}.

evdb commented 8 years ago

I've not seen that. If you can reproduce please let me know the various versions of node, this module etc.

The following works for me:

$ npm install --save country-data
country-data@0.0.24 node_modules/country-data
├── currency-symbol-map@2.2.0
└── underscore@1.8.3

$ echo "var countries = require('country-data').countries; console.log( countries.all );" | node | head
[ { alpha2: 'AC',
    alpha3: '',
    countryCallingCodes: [ '+247' ],
    currencies: [ 'USD' ],
    ioc: 'SHP',
    languages: [ 'eng' ],
    name: 'Ascension Island',
    status: 'reserved' },
  { alpha2: 'AD',
    alpha3: 'AND',
$

Closing, but please re-open if needed.