countries-codes-names
v1.0.0
Published
List of 236 countries names and Country codes as json object.
Downloads
9
Maintainers
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.