A simple weather CLI using OpenWeather and mapbox APIs using ECMAScript modules (ESM) in Node
-
Get free API keys for Mapbox and OpenWeather
-
Clone the repo
git clone git@github.com:kolberg-dev/node-weather-cli.git cd node-weather-cli
-
Install NPM packages
npm install
-
Make an dotenv file
.env
with the following contentMAPBOX_API_KEY = yourMapboxApiKey OPENWEATHERMAP_API_KEY = yourOpenWeatherApiKey
node weather.js <location>