# simple-country-list

> Intended usage: Country selector

Latest version **1.0.6** (published 2017-06-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install simple-country-list
pnpm add simple-country-list
yarn add simple-country-list
bun add simple-country-list
```

## 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.6 |
| Published | 2017-06-28 |
| First published | 2017-06-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Yuriy Linnyk |
| Maintainers | yuraji |
| Keywords | countries |

## Links

- npm: https://www.npmjs.com/package/simple-country-list
- Repository: https://github.com/yuraji/simple-country-list
- Homepage: https://github.com/yuraji/simple-country-list#readme
- Issues: https://github.com/yuraji/simple-country-list/issues
- npm.io page: https://npm.io/package/simple-country-list

## Recent versions

- 1.0.6 (latest) — 2017-06-28
- 1.0.5 — 2017-06-23
- 1.0.4 — 2017-06-23
- 1.0.3 — 2017-06-23
- 1.0.2 — 2017-06-23
- 1.0.1 — 2017-06-22
- 1.0.0 — 2017-06-22

## README

# Simple Country List

Intended usage: Country selector

This list uses data from `country-data` package, and reformats it for easier usage in a country selector scenario.

    # npm install simple-country-list
    var countriesData = require('simple-country-list');
    
    countriesData.countries = [
      // ...
      {
        "code2": [ "GB", "UK" ],
        "code3": [ "GBR" ],
        "alpha2": "GB",
        "alpha3": "GBR",
        "name": "United Kingdom",
        "emoji": "🇬🇧"
      },
      // ...
    ] // array of countries
    
    countriesData.code2.UK = [
        { // first is always the country with this alpha2
          code2: [ "GB", "UK" ],
          code3: [ "GBR" ],
          alpha2: "GB",
          alpha3: "GBR",
          name: "United Kingdom",
          emoji: "🇬🇧"
        },
        { // another country matching beginning
          code2: [ "UA" ],
          code3: [ "UKR" ],
          alpha2: "UA",
          alpha3: "UKR",
          name: "Ukraine",
          emoji: "🇺🇦"
        }
      ]
    
    countriesData.code3.AUS = [
        { // first is always the country with this alpha3
          code2: [ 'AU' ],
          code3: [ 'AUS' ],
          alpha2: "AU",
          alpha3: 'AUS',
          name: 'Australia',
          emoji: '🇦🇺' 
        },
        { // another country matching beginning
          code2: [ 'AT' ],
          code3: [ 'AUT' ],
          alpha2: "AT",
          alpha3: 'AUT',
          name: 'Austria',
          emoji: '🇦🇹' 
        }
      ],

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