# i18n-country-code

> Translations for country codes

Latest version **1.0.1** (published 2019-08-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install i18n-country-code
pnpm add i18n-country-code
yarn add i18n-country-code
bun add i18n-country-code
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2019-08-07 |
| First published | 2017-07-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 46.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Breno Calazans |
| Maintainers | afonsopraca, alcar, alinevillaca, amoreira, analuizamtg, andreldsa, anitavincent, arthurepc, arturpimentel, athoscouto, augusto.lazaro, augustob, breno, brunohq, brunojdo, caio.oliveira, cmdalbem, diegoximenes, ericreis, felippenardi, firstdoit, guigs, guilhermebruzzi, gustavorosolem, iago, igorframos, jeymisson, jgfidelis, kaisermann, kevinchevallier, lbebber, lucasecdb, lurian, marcoskwkm, marcosvcp, nandoacoelho, nonsequitur, ntmedina, rafarubim, rogerlucena, salesfelipe, samuraiexx, tergol, thiagomurakami, tlgimenes, vcalasans, victorges, victorhmp, vtexlab |
| Keywords | i18n, country, code, locales |

## Links

- npm: https://www.npmjs.com/package/i18n-country-code
- Repository: https://github.com/vtex/i18n-country-code
- Homepage: https://github.com/vtex/i18n-country-code#readme
- Issues: https://github.com/vtex/i18n-country-code/issues
- npm.io page: https://npm.io/package/i18n-country-code

## Alternatives

- [flatbuffers](https://npm.io/package/flatbuffers.md) — 6.0M weekly downloads
- [@exodus/patch-broken-hermes-typed-arrays](https://npm.io/package/@exodus/patch-broken-hermes-typed-arrays.md) — 28.5K weekly downloads
- [@native-to-anchor/buffer-layout](https://npm.io/package/@native-to-anchor/buffer-layout.md) — 12.2K weekly downloads
- [binary-parser-encoder](https://npm.io/package/binary-parser-encoder.md) — 5.3K weekly downloads
- [datasets-fi-postalcodes](https://npm.io/package/datasets-fi-postalcodes.md) — 1.1K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2019-08-07
- 1.0.0 — 2017-07-18

## README

# i18n-country-code

> Translations for country names based on its ISO Alpha 3 country code.

##  Install

```sh
$ npm install --save i18n-country-code
```

## Usage

### Node.js

```js
const translations = require("i18n-country-code/locales/en.json");

const countryName = translations["USA"];
// United States
```

### Webpack

Use it with dynamic import.

```js
const locale = "en"

import(`i18n-country-code/locales/${locale}.json`)
  .then(translations => {
    const countryName = translations["USA"];
    // United States
  })
```

## License

MIT © [VTEX](https://www.vtex.com)

---
_Source: https://npm.io/package/i18n-country-code · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
