Socket
Socket
Sign inDemoInstall

country-locale-map

Package Overview
Dependencies
1
Maintainers
1
Versions
72
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    country-locale-map

provides mapping between country codes and default country locals


Version published
Weekly downloads
56K
increased by4.85%
Maintainers
1
Install size
45.0 kB
Created
Weekly downloads
 

Readme

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(alpha2)

returns the alpha3 code of a country given it's alpha2 code

clm.getLocaleByAlpha2(alpha2)

returns a default locale for the country given it's alpha2 code

Keywords

FAQs

Last updated on 08 Oct 2019

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc