Socket
Socket
Sign inDemoInstall

weatherjs-promise

Package Overview
Dependencies
51
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    weatherjs-promise

Promise wrapper for weather-js


Version published
Weekly downloads
2
increased by100%
Maintainers
1
Install size
3.95 MB
Created
Weekly downloads
 

Readme

Source

Weatherjs-Promise

A Promises wrapper for the weather-js npm module.

Installation

npm install weatherjs-promise --save

Usage

const weather = require('weatherjs-promise');

// search parameter is a zip code, city name, etc
// degreeType is F (Fahrenheit) or C (Celsius)

weather({ search: "Los Angeles, CA", degreeType: "F" })
.then(results => {
  console.log(results)
})
.catch(err => {
  console.log(err)
})

Keywords

FAQs

Last updated on 08 Jul 2023

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