Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

countries-name

cc258135MIT1.0.0

Get name by country code.

country, country-name, code, name

readme

countries-name

Get name by country code.

Install

$ npm i countries-name

Simple

import { cName } from "countries-name";

console.log(cName("cn")); // China

console.log(cName(["CN", "Fr", "FRA"])); // ['China', 'France']

License

MIT