country-code
v0.0.3
Published
Country Data utility Library, ISO Codes etc...
Downloads
3,986
Readme
country-code
Country Code utility Library
Features
- English
name
of the Country - ISO 3166-1 Country
number
- ISO 3166-3 Country Codes
- ISO 3166-2 Alpha 2 Country Codes
Installation
$ npm install country-code
Usage
var cc = require("country-code");
cc.find({name: "Algeria"})
// { name: 'Algeria',
// alpha2: 'DZ',
// alpha3: 'DZA',
// isoNumeric: '012' }
cc.countries.DZA.name // 'Algeria'
cc.countries.GBR.isoNumeric //'826'