You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

country-code

Package Overview
Dependencies
2
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

country-code

Country Data utility Library, ISO Codes etc...


Version published
Weekly downloads
1.1K
increased by19.98%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

country-code

NPM version Build Status

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'

FAQs

Package last updated on 06 Jul 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc