iso3166

1.0.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i iso3166

Weekly Downloads

124

Version

1.0.0

License

MIT

Last publish

Collaborators

  • sedenardi