Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
weather-api-data
Advanced tools
Readme
npm install weather-api-data
loction(country_name)
- Get a weather in countryconst weather = require('weather-api-data');
async function getWeather() {
const data = await weather.loction('manama');
console.log(data);
}
getWeather();
const weather = require('weather-api-data');
weather.loction('manama').then(weather => console.log(weather));
{
location: {
name: 'Manama',
region: 'Al Manamah',
country: 'Bahrain',
lat: 26.24,
lon: 50.58,
tz_id: 'Asia/Bahrain',
localtime_epoch: 1624817976,
localtime: '2021-06-27 21:19'
},
current: {
last_updated_epoch: 1624817700,
last_updated: '2021-06-27 21:15',
temp_c: 32,
temp_f: 89.6,
is_day: 0,
condition: {
text: 'Clear',
icon: '//cdn.weatherapi.com/weather/64x64/night/113.png',
code: 1000
},
wind_mph: 8.1,
wind_kph: 13,
wind_degree: 100,
wind_dir: 'E',
pressure_mb: 1002,
pressure_in: 30.1,
precip_mm: 0,
precip_in: 0,
humidity: 71,
cloud: 0,
feelslike_c: 38.9,
feelslike_f: 102,
vis_km: 10,
vis_miles: 6,
uv: 8,
gust_mph: 22.6,
gust_kph: 36.4
}
}
FAQs
NPM package that gets information about weather
The npm package weather-api-data receives a total of 0 weekly downloads. As such, weather-api-data popularity was classified as not popular.
We found that weather-api-data 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.
Product
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.