1.0.0 • Published 4 years ago
countries-codes-names v1.0.0
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.
1.0.0
4 years ago