1.0.6 • Published 7 years ago
country-information v1.0.6
Country-Data
This package will provide all basic information about all countries. Currently only supported for node.js. React,Angular,etc.. support will be added soon in update.
Installation
OS X & Linux:
sudo npm install country-information --save
Don't forget to use sudo and --save
Windows:
npm install country-information --save
// note that currently it will work only for node.js
const {getAllNames} = require('country-information');
console.log(getAllNames());
Usage example
Generally,it is too hard to find all basic information about countries like (name,code,population,country code,etc...).So,this package will return json data of all information.
Documentation
Methods
Name | Description |
---|---|
getAllNames | It will return array of country names |
getAllCodes | It will return array of country codes |
getNameWithCode | It will return array of object of names and codes |
Release History
- 1.0.0
- First release : currently in BETA version
Meta
Kaushal Marakana – kaushalmarakana99@gmail.com