iso3166
v1.0.0
Published
Fetch ISO3166 codes and parse to JSON
Downloads
833
Readme
iso3166
Fetch ISO3166 codes and parse to JSON
Source
This module downloads and parses an XML file from Debian's iso-codes
project repository, located here.
Installation
npm install iso3166
Usage
var iso3166 = require('iso3166');
iso3166(function(err, countries) {
// array of country objects
});
Sample Object
{
"alpha_2_code": "US",
"alpha_3_code": "USA",
"numeric_code": "840",
"name": "United States",
"official_name": "United States of America"
}
License
MIT