Capitals
Get countries' capitals name and reverse.
Installation
npm i --save capitals
Usage
Get a capital name :
var capitals = require('capitals');
var germany = capitals.capitalOf('Germany');
console.log(germany);
Get a country name:
var capitals = require('capitals');
var jakarta = capitals.isCapitalOf('Jakarta');
console.log(jakarta);
Api
capitalOf (parameter : string
)
Description : returns name a city.
Returns : string
isCapitalOf (parameter : string
)
Description : return name a country.
Returns string