This package has been deprecated

Author message:

No longer maintained

@scaleway/countries
TypeScript icon, indicating that this package has built-in type declarations

1.3.2 • Public • Published

@scaleway/countries

ISO 3166/3166-2 coutries JSON database

This package only holds and publish json files


Install

$ pnpm add @scaleway/countries

Usage

import countries from '@scaleway/countries'
import frenchSubdivisions from '@scaleway/countries/subdivisions/FR'

console.log(countries) // => [{ "name": "Afghanistan", "dial_code": "+93", "code": "AF", "flag": "🇦🇫" }, ...]

console.log(frenchSubdivisions) // => [{ "code": "FR-01", "country_code": "FR", "name": "Ain", "parent_code": "FR-ARA", "type": "Metropolitan department" }, ... ]

Generation

This package is generated manually from a pypi library pycountry

To update the database, first make sure that you have:

And then:

$ pnpm run generate

Readme

Keywords

none

Package Sidebar

Install

npm i @scaleway/countries

Weekly Downloads

1

Version

1.3.2

License

MIT

Unpacked Size

682 kB

Total Files

204

Last publish

Collaborators

  • codelax
  • quantumsheep
  • scaleway-bot
  • mprost
  • imanu
  • vincentaudebert
  • maliszewskid
  • phiphi