Returns the current weather information of the capital of the country sent through the console.
In this plugin, yargs and axios npm packages, OpenWeatherMap and REST Countries API are used.
To install this package, simply write this code on the console screen:
npm i country-weather-info
For more information: weather --help
const app = require('country-weather-info');
app();
Console:
node yourjsfile.js weather --country="Country Name" --unit="Heat Unit [Optional, default value fahrenheit]"