Socket
Socket
Sign inDemoInstall

weatherware

Package Overview
Dependencies
10
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    weatherware

a module to interact with microsofts weather api.


Version published
Maintainers
1
Install size
763 kB
Created

Readme

Source

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

FAQs

Last updated on 09 Jul 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc