You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@scaleway/countries

Package Overview
Dependencies
Maintainers
7
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@scaleway/countries

A package containing ISO 3166 and ISO 3166-2 codes

1.3.2
latest
Source
npmnpm
Version published
Weekly downloads
4
300%
Maintainers
7
Weekly downloads
 
Created
Source

@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:

  • python >= 3.0
  • poetry >= 1.0

And then:

$ pnpm run generate

FAQs

Package last updated on 05 Apr 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts