Skip to content

Typeslint/msn-weather-api

Repository files navigation

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.