Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@t0ri/openweathermap-essentials
Advanced tools
Receive only the essential data back from the OpenWeatherMap API in an easy-to-navigate Weather object.
Receive only the essential data back from the OpenWeatherMap API in an easy-to-navigate Weather object.
Weather {
cloudiness: 90,
sun: {
rise: '7:07:21',
set: '16:51: 6'
},
location: {
city: 'San Francisco',
country: 'US',
timezone: -28800
},
temp: {
current: 55.8,
min: 51.8,
max: 60.01
},
air: {
humidity: 82,
pressure: 1018
},
type: {
description: 'Rain',
detailedDescription: 'light rain'
},
wind: {
direction: 'NE',
speed: 3
},
zip: 94108,
apiKey: 'YOUR_KEY_HERE',
units: 'imperial'
}
Create a new Weather object, passing in options in an object.
Options include apiKey
(string), zip
(number), and an optional units
argument.
The units
option accepts "imperial", "standard", or "metric" but will default to "imperial".
const weather = new Weather({ apiKey: 'YOUR_KEY_HERE', zip: 94108, units: 'imperial' })
cloudiness
returns the percentage of cloudiness (number)
sun.rise
and sun.set
return a formatted time string in the timezone local to the zip code (string)
location.city
returns the city name belonging to the zip code (string)
location.country
returns the country name belonging to the zip code (string)
location.timezone
returns the millisecond offset between your computer's time and the time local to the zip code (number)
temp.current
returns the current temperature in the specified zip code (number)
temp.min
returns the minimum temperature in the specified zip code (number)
temp.max
returns the maximum temperature in the specified zip code (number)
air.humidity
returns the humidity percentage in the zip code (number)
air.pressure
returns the atmospheric pressure in the zip code in hPa (number)
type.description
returns a short description of the weather in a zip code (string)
type.detailedDescription
returns a long description of the weather in a zip code (string)
wind.direction
returns the direction the wind is blowing in a zip code (string)
wind.speed
returns the speed the wind is blowing in a zip code (number)
FAQs
Receive only the essential data back from the OpenWeatherMap API in an easy-to-navigate Weather object.
We found that @t0ri/openweathermap-essentials demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.