/cc

Country Code utility Library

Primary LanguageJavaScriptMIT LicenseMIT

country-code

NPM version Build Status

Country Code utility Library

Features

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'