Npm library to fetch information about any country


Keywords
capitals, countries, world, information, timezones, UTC
License
ISC
Install
npm install world-info@1.1.1

Documentation

World Info

An NPM package which helps you get any information of a Country.

There are 2 functions, Future functions will be added based on usage and necessity.

getCapital - Fetches the capital given a Country as a string input.

getTimezones - Fetches the UTC timezones given a Country as a string input. Returns a promise.

Installation Instructions

npm i world-info

How to use

var worldInfo = require('world-info')
worldInfo.getCapital('India')
worldInfo.getTimeZones('India').then(data => doWhateverWith(data))