Closed colllin closed 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.
Have you ever seen this? I
npm install --save country-data
thenvar countries = require('country-data').countries;
, andcountries.all
looks like{}
.