@comicrelief/country-lists
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

Country lists

A small module that exports country lists used by Comic Relief's frontend components. Country data comes from country-list.

Usage

Install using npm or yarn:

npm i @comicrelief/country-lists
# or
yarn add @comicrelief/country-lists

Each list includes:

  • getNames(): returns the plain names of the countries
  • getSelectItems(): returns { value, displayValue } objects for our current <Select> component
  • getLegacySelectItems(): returns { value, label } objects for our legacy components

Lists

ALL_COUNTRIES

Includes every country as provided by country-list.

UK_AND_CHANNEL_ISLES

Includes the United Kingdom and its Crown Dependencies: the Isle of Man, Jersey, and Guernsey.

Readme

Keywords

none

Package Sidebar

Install

npm i @comicrelief/country-lists

Weekly Downloads

2

Version

1.0.0

License

MIT

Unpacked Size

8.89 kB

Total Files

10

Last publish

Collaborators

  • 7777akhil
  • hadeer.ashraf
  • ahmed.elbougha
  • mahmoud.mohamed93
  • mohamed.mahmoud
  • krupapammi
  • john.levermore
  • modonovan
  • andyephipps
  • cr-engineering-ops
  • saebischer
  • corinja