sjcountries

1.4.0 • Public • Published

SJCOUNTRIES

It has large list of 248 countries.

Countries with their native name, timezones, cities, languages, provinces, currency, capital, calling code, etc

Installation

=====================================================================================

sudo npm install sjcountries

functions

=====================================================================================

 
    var countries = require("sjcountries");
 
    countries.get("USA") // Get the Instance of Unites States of America for all details
 
    countries.getAll(); // Get the Object with all countries corresponding to Country Code
 
    countries.getUSA(); // Its another way to get the Instance of Unites States of America for all details
 
    countries.setNativeName('USA','United States'); // This will update the existing value of USA NativeName property.
 

Go for default Object with countries list or to discard all updated changes in countries Object use :

 
    countries.resetCountryData();
 
    countries.getNativeName("AUS"); // result will be "Australia"
 
    countries.getName("AUS"); // this method will return an object of with lot more options about australia country name
 

List of functions are :

 
  countries.get("USA");
  
  
  countries.getAll();
  
  
  countries.resetCountryData();
  
  
  countries.getName(countryCode);
  
  
  countries.setName(countryCode,updatedCountryObject);
  
  
  countries.getCities(countryCode);
  
  
  countries.setCities(countryCode,updatedCountryObject);
  
  
  countries.getNativeName(countryCode);
  
  
  countries.setNativeName(countryCode,updatedCountryObject);
  
  
  countries.getProvinces(countryCode);
  
  
  countries.setProvinces(countryCode,updatedCountryObject);
  
  
  countries.getTLD(countryCode);
  
  
  countries.setTLD(countryCode,updatedCountryObject);
  
  
  countries.getCCA2(countryCode);
  
  
  countries.setCCA2(countryCode,updatedCountryObject);
  
  
  countries.getCCN3(countryCode);
  
  
  countries.setCCN3(countryCode,updatedCountryObject);
  
  
  countries.getCCA3(countryCode);
  
  
  countries.setCCA3(countryCode,updatedCountryObject);
  
  
  countries.getCIOC(countryCode);
  
  
  countries.setCIOC(countryCode,updatedCountryObject);
  
  
  countries.getCurrency(countryCode);
  
  
  countries.setCurrency(countryCode,updatedCountryObject);
  
  
  countries.getCallingCode(countryCode);
  
  
  countries.setCallingCode(countryCode,updatedCountryObject);
  
  
  countries.getCapital(countryCode);
  
  
  countries.setCapital(countryCode,updatedCountryObject);
  
  
  countries.getAltSpellings(countryCode);
  
  
  countries.setAltSpellings(countryCode,updatedCountryObject);
  
  
  countries.getRegion(countryCode);
  
  
  countries.setRegion(countryCode,updatedCountryObject);
  
  
  countries.getSubRegion(countryCode);
  
  
  countries.setSubRegion(countryCode,updatedCountryObject);
  
  
  countries.getLanguages(countryCode);
  
  
  countries.setLanguages(countryCode,updatedCountryObject);
  
  
  countries.getTranslations(countryCode);
  
  
  countries.setTranslations(countryCode,updatedCountryObject);
  
  
  countries.getLatLng(countryCode);
  
  
  countries.setLatLng(countryCode,updatedCountryObject);
  
  
  countries.getDemonym(countryCode);
  
  
  countries.setDemonym(countryCode,updatedCountryObject);
  
  
  countries.getLandLocked(countryCode);
  
  
  countries.setLandLocked(countryCode,updatedCountryObject);
  
  
  countries.getBorders(countryCode);
  
  
  countries.setBorders(countryCode,updatedCountryObject);
  
  
  countries.getArea(countryCode);
  
  
  countries.setArea(countryCode,updatedCountryObject);
  
  
  countries.getTimezones(countryCode);
  
  
  countries.setTimezones(countryCode,updatedCountryObject);
  
  
  countries.getABW();
  
  
  countries.setABW(updatedValue);
  
  
  countries.getAFG();
  
  
  countries.setAFG(updatedValue);
  
  
  countries.getAGO();
  
  
  countries.setAGO(updatedValue);
  
  
  countries.getAIA();
  
  
  countries.setAIA(updatedValue);
  
  
  countries.getALA();
  
  
  countries.setALA(updatedValue);
  
  
  countries.getALB();
  
  
  countries.setALB(updatedValue);
  
  
  countries.getAND();
  
  
  countries.setAND(updatedValue);
  
  
  countries.getARE();
  
  
  countries.setARE(updatedValue);
  
  
  countries.getARG();
  
  
  countries.setARG(updatedValue);
  
  
  countries.getARM();
  
  
  countries.setARM(updatedValue);
  
  
  countries.getASM();
  
  
  countries.setASM(updatedValue);
  
  
  countries.getATA();
  
  
  countries.setATA(updatedValue);
  
  
  countries.getATF();
  
  
  countries.setATF(updatedValue);
  
  
  countries.getATG();
  
  
  countries.setATG(updatedValue);
  
  
  countries.getAUS();
  
  
  countries.setAUS(updatedValue);
  
  
  countries.getAUT();
  
  
  countries.setAUT(updatedValue);
  
  
  countries.getAZE();
  
  
  countries.setAZE(updatedValue);
  
  
  
  countries.getBDI();
  
  
  countries.setBDI(updatedValue);
  
  
  countries.getBEL();
  
  
  countries.setBEL(updatedValue);
  
  
  countries.getBEN();
  
  
  countries.setBEN(updatedValue);
  
  
  countries.getBFA();
  
  
  countries.setBFA(updatedValue);
  
  
  countries.getBGD();
  
  
  countries.setBGD(updatedValue);
  
  
  countries.getBGR();
  
  
  countries.setBGR(updatedValue);
  
  
  countries.getBHR();
  
  
  countries.setBHR(updatedValue);
  
  
  countries.getBHS();
  
  
  countries.setBHS(updatedValue);
  
  
  countries.getBIH();
  
  
  countries.setBIH(updatedValue);
  
  
  countries.getBLM();
  
  
  countries.setBLM(updatedValue);
  
  
  countries.getBLR();
  
  
  countries.setBLR(updatedValue);
  
  
  countries.getBLZ();
  
  
  countries.setBLZ(updatedValue);
  
  
  countries.getBMU();
  
  
  countries.setBMU(updatedValue);
  
  
  countries.getBOL();
  
  countries.setBOL(updatedValue);
  
  countries.getBRA();
  
  countries.setBRA(updatedValue);
  
  countries.getBRB();
  
  countries.setBRB(updatedValue);
  
  countries.getBRN();
  
  countries.setBRN(updatedValue);
  
  countries.getBTN();
  
  countries.setBTN(updatedValue);
  
  countries.getBVT();
  
  countries.setBVT(updatedValue);
  
  countries.getBWA();
  
  countries.setBWA(updatedValue);
  
  countries.getCAF();
  
  countries.setCAF(updatedValue);
  
  countries.getCAN();
  
  countries.setCAN(updatedValue);
  
  countries.getCCK();
  
  countries.setCCK(updatedValue);
  
  countries.getCHE();
  
  countries.setCHE(updatedValue);
  
  countries.getCHL();
  
  countries.setCHL(updatedValue);
  
  countries.getCHN();
  
  countries.setCHN(updatedValue);
  
  countries.getCIV();
  
  countries.setCIV(updatedValue);
  
  countries.getCMR();
  
  countries.setCMR(updatedValue);
  
  countries.getCOD();
  
  countries.setCOD(updatedValue);
  
  countries.getCOG();
  
  countries.setCOG(updatedValue);
  
  countries.getCOK();
  
  countries.setCOK(updatedValue);
  
  countries.getCOL();
  
  countries.setCOL(updatedValue);
  
  countries.getCOM();
  
  countries.setCOM(updatedValue);
  
  countries.getCPV();
  
  countries.setCPV(updatedValue);
  
  countries.getCRI();
  
  countries.setCRI(updatedValue);
  
  countries.getCUB();
  
  countries.setCUB(updatedValue);
  
  countries.getCUW();
  
  countries.setCUW(updatedValue);
  
  countries.getCXR();
  
  countries.setCXR(updatedValue);
  
  countries.getCYM();
  
  countries.setCYM(updatedValue);
  
  countries.getCYP();
  
  countries.setCYP(updatedValue);
  
  countries.getCZE();
  
  countries.setCZE(updatedValue);
  
  countries.getDEU();
  
  countries.setDEU(updatedValue);
  
  countries.getDJI();
  
  countries.setDJI(updatedValue);
  
  countries.getDMA();
  
  countries.setDMA(updatedValue);
  
  countries.getDNK();
  
  countries.setDNK(updatedValue);
  
  countries.getDOM();
  
  countries.setDOM(updatedValue);
  
  countries.getDZA();
  
  countries.setDZA(updatedValue);
  
  countries.getECU();
  
  countries.setECU(updatedValue);
  
  countries.getEGY();
  
  countries.setEGY(updatedValue);
  
  countries.getERI();
  
  countries.setERI(updatedValue);
  
  countries.getESH();
  
  countries.setESH(updatedValue);
  
  countries.getESP();
  
  countries.setESP(updatedValue);
  
  countries.getEST();
  
  countries.setEST(updatedValue);
  
  countries.getETH();
  
  countries.setETH(updatedValue);
  
  countries.getFIN();
  
  countries.setFIN(updatedValue);
  
  countries.getFJI();
  
  countries.setFJI(updatedValue);
  
  countries.getFLK();
  
  countries.setFLK(updatedValue);
  
  countries.getFRA();
  
  countries.setFRA(updatedValue);
  
  countries.getFRO();
  
  countries.setFRO(updatedValue);
  
  countries.getFSM();
  
  countries.setFSM(updatedValue);
  
  countries.getGAB();
  
  countries.setGAB(updatedValue);
  
  countries.getGBR();
  
  countries.setGBR(updatedValue);
  
  countries.getGEO();
  
  countries.setGEO(updatedValue);
  
  countries.getGGY();
  
  countries.setGGY(updatedValue);
  
  countries.getGHA();
  
  countries.setGHA(updatedValue);
  
  countries.getGIB();
  
  countries.setGIB(updatedValue);
  
  countries.getGIN();
  
  countries.setGIN(updatedValue);
  
  countries.getGLP();
  
  countries.setGLP(updatedValue);
  
  countries.getGMB();
  
  countries.setGMB(updatedValue);
  
  countries.getGNB();
  
  countries.setGNB(updatedValue);
  
  countries.getGNQ();
  
  countries.setGNQ(updatedValue);
  
  countries.getGRC();
  
  countries.setGRC(updatedValue);
  
  countries.getGRD();
  
  countries.setGRD(updatedValue);
  
  countries.getGRL();
  
  countries.setGRL(updatedValue);
  
  countries.getGTM();
  
  countries.setGTM(updatedValue);
  
  countries.getGUF();
  
  countries.setGUF(updatedValue);
  
  countries.getGUM();
  
  countries.setGUM(updatedValue);
  
  countries.getGUY();
  
  countries.setGUY(updatedValue);
  
  countries.getHKG();
  
  countries.setHKG(updatedValue);
  
  countries.getHMD();
  
  countries.setHMD(updatedValue);
  
  countries.getHND();
  
  countries.setHND(updatedValue);
  
  countries.getHRV();
  
  countries.setHRV(updatedValue);
  
  countries.getHTI();
  
  countries.setHTI(updatedValue);
  
  countries.getHUN();
  
  countries.setHUN(updatedValue);
  
  countries.getIDN();
  
  countries.setIDN(updatedValue);
  
  countries.getIMN();
  
  countries.setIMN(updatedValue);
  
  countries.getIND();
  
  countries.setIND(updatedValue);
  
  countries.getIOT();
  
  countries.setIOT(updatedValue);
  
  countries.getIRL();
  
  countries.setIRL(updatedValue);
  
  countries.getIRN();
  
  countries.setIRN(updatedValue);
  
  countries.getIRQ();
  
  countries.setIRQ(updatedValue);
  
  countries.getISL();
  
  countries.setISL(updatedValue);
  
  countries.getISR();
  
  countries.setISR(updatedValue);
  
  countries.getITA();
  
  countries.setITA(updatedValue);
  
  countries.getJAM();
  
  countries.setJAM(updatedValue);
  
  countries.getJEY();
  
  countries.setJEY(updatedValue);
  
  countries.getJOR();
  
  countries.setJOR(updatedValue);
  
  countries.getJPN();
  
  countries.setJPN(updatedValue);
  
  countries.getKAZ();
  
  countries.setKAZ(updatedValue);
  
  countries.getKEN();
  
  countries.setKEN(updatedValue);
  
  countries.getKGZ();
  
  countries.setKGZ(updatedValue);
  
  countries.getKHM();
  
  countries.setKHM(updatedValue);
  
  countries.getKIR();
  
  countries.setKIR(updatedValue);
  
  countries.getKNA();
  
  countries.setKNA(updatedValue);
  
  countries.getKOR();
  
  countries.setKOR(updatedValue);
  
  countries.getUNK();
  
  countries.setUNK(updatedValue);
  
  countries.getKWT();
  
  countries.setKWT(updatedValue);
  
  countries.getLAO();
  
  countries.setLAO(updatedValue);
  
  countries.getLBN();
  
  countries.setLBN(updatedValue);
  
  countries.getLBR();
  
  countries.setLBR(updatedValue);
  
  countries.getLBY();
  
  countries.setLBY(updatedValue);
  
  countries.getLCA();
  
  countries.setLCA(updatedValue);
  
  countries.getLIE();
  
  countries.setLIE(updatedValue);
  
  countries.getLKA();
  
  countries.setLKA(updatedValue);
  
  countries.getLSO();
  
  countries.setLSO(updatedValue);
  
  countries.getLTU();
  
  countries.setLTU(updatedValue);
  
  countries.getLUX();
  
  countries.setLUX(updatedValue);
  
  countries.getLVA();
  
  countries.setLVA(updatedValue);
  
  countries.getMAC();
  
  countries.setMAC(updatedValue);
  
  countries.getMAF();
  
  countries.setMAF(updatedValue);
  
  countries.getMAR();
  
  countries.setMAR(updatedValue);
  
  countries.getMCO();
  
  countries.setMCO(updatedValue);
  
  countries.getMDA();
  
  countries.setMDA(updatedValue);
  
  countries.getMDG();
  
  countries.setMDG(updatedValue);
  
  countries.getMDV();
  
  countries.setMDV(updatedValue);
  
  countries.getMEX();
  
  countries.setMEX(updatedValue);
  
  countries.getMHL();
  
  countries.setMHL(updatedValue);
  
  countries.getMKD();
  
  countries.setMKD(updatedValue);
  
  countries.getMLI();
  
  countries.setMLI(updatedValue);
  
  countries.getMLT();
  
  countries.setMLT(updatedValue);
  
  countries.getMMR();
  
  countries.setMMR(updatedValue);
  
  countries.getMNE();
  
  countries.setMNE(updatedValue);
  
  countries.getMNG();
  
  countries.setMNG(updatedValue);
  
  countries.getMNP();
  
  countries.setMNP(updatedValue);
  
  countries.getMOZ();
  
  countries.setMOZ(updatedValue);
  
  countries.getMRT();
  
  countries.setMRT(updatedValue);
  
  countries.getMSR();
  
  countries.setMSR(updatedValue);
  
  countries.getMTQ();
  
  countries.setMTQ(updatedValue);
  
  countries.getMUS();
  
  countries.setMUS(updatedValue);
  
  countries.getMWI();
  
  countries.setMWI(updatedValue);
  
  countries.getMYS();
  
  countries.setMYS(updatedValue);
  
  countries.getMYT();
  
  countries.setMYT(updatedValue);
  
  countries.getNAM();
  
  countries.setNAM(updatedValue);
  
  countries.getNCL();
  
  countries.setNCL(updatedValue);
  
  countries.getNER();
  
  countries.setNER(updatedValue);
  
  countries.getNFK();
  
  countries.setNFK(updatedValue);
  
  countries.getNGA();
  
  countries.setNGA(updatedValue);
  
  countries.getNIC();
  
  countries.setNIC(updatedValue);
  
  countries.getNIU();
  
  countries.setNIU(updatedValue);
  
  countries.getNLD();
  
  countries.setNLD(updatedValue);
  
  countries.getNOR();
  
  countries.setNOR(updatedValue);
  
  countries.getNPL();
  
  countries.setNPL(updatedValue);
  
  countries.getNRU();
  
  countries.setNRU(updatedValue);
  
  countries.getNZL();
  
  countries.setNZL(updatedValue);
  
  countries.getOMN();
  
  countries.setOMN(updatedValue);
  
  countries.getPAK();
  
  countries.setPAK(updatedValue);
  
  countries.getPAN();
  
  countries.setPAN(updatedValue);
  
  countries.getPCN();
  
  countries.setPCN(updatedValue);
  
  countries.getPER();
  
  countries.setPER(updatedValue);
  
  countries.getPHL();
  
  countries.setPHL(updatedValue);
  
  countries.getPLW();
  
  countries.setPLW(updatedValue);
  
  countries.getPNG();
  
  countries.setPNG(updatedValue);
  
  countries.getPOL();
  
  countries.setPOL(updatedValue);
  
  countries.getPRI();
  
  countries.setPRI(updatedValue);
  
  countries.getPRK();
  
  countries.setPRK(updatedValue);
  
  countries.getPRT();
  
  countries.setPRT(updatedValue);
  
  countries.getPRY();
  
  countries.setPRY(updatedValue);
  
  countries.getPSE();
  
  countries.setPSE(updatedValue);
  
  countries.getPYF();
  
  countries.setPYF(updatedValue);
  
  countries.getQAT();
  
  countries.setQAT(updatedValue);
  
  countries.getREU();
  
  countries.setREU(updatedValue);
  
  countries.getROU();
  
  countries.setROU(updatedValue);
  
  countries.getRUS();
  
  countries.setRUS(updatedValue);
  
  countries.getRWA();
  
  countries.setRWA(updatedValue);
  
  countries.getSAU();
  
  countries.setSAU(updatedValue);
  
  countries.getSDN();
  
  countries.setSDN(updatedValue);
  
  countries.getSEN();
  
  countries.setSEN(updatedValue);
  
  countries.getSGP();
  
  countries.setSGP(updatedValue);
  
  countries.getSGS();
  
  countries.setSGS(updatedValue);
  
  countries.getSJM();
  
  countries.setSJM(updatedValue);
  
  countries.getSLB();
  
  countries.setSLB(updatedValue);
  
  countries.getSLE();
  
  countries.setSLE(updatedValue);
  
  countries.getSLV();
  
  countries.setSLV(updatedValue);
  
  countries.getSMR();
  
  countries.setSMR(updatedValue);
  
  countries.getSOM();
  
  countries.setSOM(updatedValue);
  
  countries.getSPM();
  
  countries.setSPM(updatedValue);
  
  countries.getSRB();
  
  countries.setSRB(updatedValue);
  
  countries.getSSD();
  
  countries.setSSD(updatedValue);
  
  countries.getSTP();
  
  countries.setSTP(updatedValue);
  
  countries.getSUR();
  
  countries.setSUR(updatedValue);
  
  countries.getSVK();
  
  countries.setSVK(updatedValue);
  
  countries.getSVN();
  
  countries.setSVN(updatedValue);
  
  countries.getSWE();
  
  countries.setSWE(updatedValue);
  
  countries.getSWZ();
  
  countries.setSWZ(updatedValue);
  
  countries.getSXM();
  
  countries.setSXM(updatedValue);
  
  countries.getSYC();
  
  countries.setSYC(updatedValue);
  
  countries.getSYR();
  
  countries.setSYR(updatedValue);
  
  countries.getTCA();
  
  countries.setTCA(updatedValue);
  
  countries.getTCD();
  
  countries.setTCD(updatedValue);
  
  countries.getTGO();
  
  countries.setTGO(updatedValue);
  
  countries.getTHA();
  
  countries.setTHA(updatedValue);
  
  countries.getTJK();
  
  countries.setTJK(updatedValue);
  
  countries.getTKL();
  
  countries.setTKL(updatedValue);
  
  countries.getTKM();
  
  countries.setTKM(updatedValue);
  
  countries.getTLS();
  
  countries.setTLS(updatedValue);
  
  countries.getTON();
  
  countries.setTON(updatedValue);
  
  countries.getTTO();
  
  countries.setTTO(updatedValue);
  
  countries.getTUN();
  
  countries.setTUN(updatedValue);
  
  countries.getTUR();
  
  countries.setTUR(updatedValue);
  
  countries.getTUV();
  
  countries.setTUV(updatedValue);
  
  countries.getTWN();
  
  countries.setTWN(updatedValue);
  
  countries.getTZA();
  
  countries.setTZA(updatedValue);
  
  countries.getUGA();
  
  countries.setUGA(updatedValue);
  
  countries.getUKR();
  
  countries.setUKR(updatedValue);
  
  countries.getUMI();
  
  countries.setUMI(updatedValue);
  
  countries.getURY();
  
  countries.setURY(updatedValue);
  
  countries.getUSA();
  
  countries.setUSA(updatedValue);
  
  countries.getUZB();
  
  countries.setUZB(updatedValue);
  
  countries.getVAT();
  
  countries.setVAT(updatedValue);
  
  countries.getVCT();
  
  countries.setVCT(updatedValue);
  
  countries.getVEN();
  
  countries.setVEN(updatedValue);
  
  countries.getVGB();
  
  countries.setVGB(updatedValue);
  
  countries.getVIR();
  
  countries.setVIR(updatedValue);
  
  countries.getVNM();
 
  countries.setVNM(updatedValue);
 
  countries.getVUT();
 
  countries.setVUT(updatedValue);
 
  countries.getWLF();
 
  countries.setWLF(updatedValue);
 
  countries.getWSM();
 
  countries.setWSM(updatedValue);
 
  countries.getYEM();
 
  countries.setYEM(updatedValue);
 
  countries.getZAF();
 
  countries.setZAF(updatedValue);
 
  countries.getZMB();
 
  countries.setZMB(updatedValue);
 
  countries.getZWE();
 
  countries.setZWE(updatedValue);
 

Package Sidebar

Install

npm i sjcountries

Weekly Downloads

0

Version

1.4.0

License

ISC

Last publish

Collaborators

  • sjsumitjangir001