msn-weather-api
v0.3.1
Published
Get weather forecast from MSN
Downloads
5
Readme
msn-weather-api
Weather forecast by MSN weather.
Installation
NPM
$ npm install msn-weather-api
Yarn
$ yarn add msn-weather-api
Usage
const WeatherMSN = require('msn-weather-api');
const weather = new WeatherMSN('en', 'c');
(async () => {
const current = await weather.getCurrentData('kyoto');
const forecast = await weather.getForecastData('kyoto', 1);
current.weather; // Cloudy
forecast.weather; // Light Rain
})();
License
This project is licensed under the ISC License.