JSPM

countries-codes-names

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q22122F
  • License ISC

List of 236 countries names and Country codes as json object.

Package Exports

  • countries-codes-names

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (countries-codes-names) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

countries-codes-names package gives you to acces All countries Names and Codes .It has more than 235 countries to access simply search any country with country name.

Usage

npm install --save countries-codes-names

let countries = require('countries-codes-names');

//Get single country details console.log(countries.SriLanka());

output : { name: 'Sri Lanka', key: 'LK', code: 'LK' }

Using this JSON you can access name and code property.

//get all countries list as JSON

console.log(countries.countriesList());

Star the repository if you liked.