countries-codes-names

1.0.0 • Public • Published

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.

Package Sidebar

Install

npm i countries-codes-names

Weekly Downloads

1

Version

1.0.0

License

ISC

Unpacked Size

32.1 kB

Total Files

4

Last publish

Collaborators

  • ebayshashila