Skip to content

A Module to get information from the Microsoft weather API

License

Notifications You must be signed in to change notification settings

DevYukine/weatherware

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WeebTS

Typescript module to get information from the Microsoft weather API, usable in both TS and JS.

Example usage:

Typescript:

import { Client } from 'weatherware';

const client: Client = new Client();

client.getWeather({ query: 'city name or zipcode' })
	.then(console.log)
	.catch(console.error);

Javascript:

const { Client } = require('weatherware');

const client = new Client({ language: 'default Language (can be overriden in the getWeather method)', degreeType: 'default degreeType (can be overriden in the getWeather method)' });

client.getWeather({ query: 'city name or zipcode'})
	.then(console.log)
	.catch(console.error);

About

A Module to get information from the Microsoft weather API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published