New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

node-openweather

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-openweather

OpenWeatherMap API wrapper for NodeJS

latest
Source
npmnpm
Version
0.0.5
Version published
Maintainers
1
Created
Source

overburn/node-openweather

Build Status npm version

Installation

Just install the package using npm

npm install node-openweather

Usage

** Work in progress - more endpoints will be covered soon **

var weather = require('node-openweather')({
  key: "your-openweathermap-api-key",
  accuracy: "like",
  unit: "metric",
  language: "en"
});

weather.city('London').now().then(function(res) {
  //success logic
}).catch(function(err) {
  //error handling
});

Location selectors

city(city_name, [country])
coords(lat, lng)
zip(zip_code, [country])
id(city_id)

#Time selectors

now()
forecast(5) or forecast(16)
history()

Keywords

units

FAQs

Package last updated on 14 Jul 2016

Did you know?

Socket

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