Skip to content

Information about countries - like their ISO (2/3) codes and currencies

License

Notifications You must be signed in to change notification settings

lasalasa/country-data-find

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Country code find

Information about countries - like their ISO (2/3) codes and currencies

Installation

npm install country-data-find --save

Usage

const Country = require('country-code-find');

// you can get all countries JSON format
let countryJSON = Country.JSON();

// you can get all countries Array format
let arrayJSON = Country.Array();

let sl = Country.findCountry('Sri Lanka');
/* returns:
{
    "ISO3_CODE": "LKA",
    "ISO2_CODE": "LK",
    "CURRENCY": [ 
        { 
          "NAME": [ "Sri Lankan rupee" ],
          "CODE": [ "LKR" ],
          "NUM": []
        }
    ],
    "LIST_OF_NAME": {
        "ENG": ["Sri Lanka"],
        "DUTCH" : ["Sri Lanka"] 
    }
}
*/

Notes

The work on this npm package is partialy completed, however it works fine. I hope to improve this module.

About

Information about countries - like their ISO (2/3) codes and currencies

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •