@scuba-squad/country-db

json country database

Usage no npm install needed!

<script type="module">
  import scubaSquadCountryDb from 'https://cdn.skypack.dev/@scuba-squad/country-db';
</script>

README

Country DB

Purpose

Database of countries in json format

Notes:

This repo while registered as an npm module should remain agnostic so that it may be used with several languages and platforms.

Installation

Via npm

npm install @scuba-squad/country-db

Usage

const countries = require('@scuba-squad/country-db');

Object Structure

v1.0.0

{
  "name": "string",
  "iso2Code": "string",
  "iso3Code": "string",
  "isoNumericCode": "string",
  "postalCodeRegEx": "string | null",
  "callingCode": "string | string[]"
}

License

MIT