weatherware
TypeScript icon, indicating that this package has built-in type declarations

1.0.5 • Public • Published

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);

Readme

Keywords

none

Package Sidebar

Install

npm i weatherware

Weekly Downloads

1

Version

1.0.5

License

MIT

Unpacked Size

23.3 kB

Total Files

14

Last publish

Collaborators

  • yukine