0.1.0 • Published 3 years ago
hk-weather v0.1.0
Weather (Hong Kong)
Non-official Node.JS wrapper for Weather
Resources
Getting Started
Install
npm install hk-weather
Usage
import { Weather } from 'hk-weather';
// or
const { Weather } = require('hk-weather');
const localWeatherForecast = await Weather.getLocalWeatherForecast();
const nineDayWeatherForecast = await Weather.get9DayWeatherForecast();
const currentWeatherReport = await Weather.getCurrentWeatherReport();
const weatherWarningSummary = await Weather.getWeatherWarningSummary();
const weatherWarningInformation = await Weather.getWeatherWarningInformation();
const specialWeatherTips = await Weather.getSpecialWeatherTips();
console.log({
localWeatherForecast,
nineDayWeatherForecast,
currentWeatherReport,
weatherWarningSummary,
weatherWarningInformation,
specialWeatherTips,
});
0.1.0
3 years ago