Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

country-locale-map

Package Overview
Dependencies
Maintainers
1
Versions
76
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

country-locale-map

provides mapping between country codes and default country locals

  • 1.0.9
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
5.5K
decreased by-81.3%
Maintainers
1
Weekly downloads
 
Created
Source

Country Locale Map

This is a simple package that provides easy conversion from alpha2 to alpha3 country codes as well as a default locale for each country

Usage

const clm = require(country-locale-map);
clm.getAlpha3ByAlpha2('CA'); //returns 'CAN' 

Methods

Alpha2

  • getAlpha3ByAlpha2(alpha2)
  • getLocaleByAlpha2(alpha2)
  • getCountryNameByAlpha2(alpha2)
  • getNumericByAlpha2(alpha2)
  • getCountryByAlpha2(alpha2)

Alpha3

  • getAlpha2ByAlpha3(alpha3)
  • getLocaleByAlpha3(alpha3)
  • getCountryNameByAlpha3(alpha3)
  • getNumericByAlpha3(alpha3)
  • getCountryByAlpha3(alpha3)

Numeric

  • getAlpha2ByNumeric(numeric)
  • getAlpha3ByNumeric(numeric)
  • getLocaleByNumeric(numeric)
  • getCountryNameByNumeric(numeric)
  • getCountryByNumeric(numeric)

Keywords

FAQs

Package last updated on 09 Oct 2019

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

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc