https://github.com/devyukine/weatherware
A Module to get information from the Microsoft weather API
https://github.com/devyukine/weatherware
Last synced: about 2 months ago
JSON representation
A Module to get information from the Microsoft weather API
- Host: GitHub
- URL: https://github.com/devyukine/weatherware
- Owner: DevYukine
- License: mit
- Created: 2018-05-18T17:33:30.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-07-09T23:33:53.000Z (almost 8 years ago)
- Last Synced: 2025-03-01T18:02:02.516Z (over 1 year ago)
- Language: TypeScript
- Homepage:
- Size: 30.3 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# WeebTS
Typescript module to get information from the Microsoft weather API, usable in both TS and JS.
Example usage:
Typescript:
```Typescript
import { Client } from 'weatherware';
const client: Client = new Client();
client.getWeather({ query: 'city name or zipcode' })
.then(console.log)
.catch(console.error);
```
Javascript:
```js
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);
```