Skip to content

Latest commit

 

History

History
37 lines (27 loc) · 820 Bytes

README.md

File metadata and controls

37 lines (27 loc) · 820 Bytes

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.