CodeGoat-dev / msn-weather-api

MSN weather

Home Page:https://www.npmjs.com/package/msn-weather-api

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

MSN weather

https://www.npmjs.com/package/msn-weather-api

License:ISC License


Languages

Language:JavaScript 100.0%