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

country-name

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

country-name

> Simple getter for country names in _all_ languages (backed by a script that dumps data direct from the CLDR).

  • 0.4.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
89
decreased by-35.97%
Maintainers
1
Weekly downloads
 
Created
Source

Country Name

Simple getter for country names in all languages (backed by a script that dumps data direct from the CLDR).

Install

npm i country-name --save

Usage

import countryName from "country-name";

// countryName( 3-LETTER COUNTRY CODE , LANGUAGE SUBTAG )
countryName("USA", "en"); // United States
countryName("USA", "ja"); // アメリカ合衆国
countryName("JPN", "en"); // Japan
countryName("JPN", "ja"); // 日本

Contributing

Pull requests are always welcome.

  • Some method of only including a set of langauges rather than ALL of them (maybe package.json based config)
  • Remote loading of data (would fair better for websites)

Keywords

FAQs

Package last updated on 06 Jun 2017

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