Security News
How Threat Actors are Abusing GitHub’s File Upload Feature to Host Malware
GitHub is susceptible to a CDN flaw that allows attackers to host malware on any public repository.
weather-react-icons
Advanced tools
Readme
A React component for weather icons for use with Open Weather and Yahoo Weather APIs.
$ npm i weather-react-icons
import * as React from 'react';
// The following CSS file must be installed for use of WeatherIcon.
import 'weather-react-icons/lib/css/weather-icons.css';
import { WeatherIcon } from 'weather-react-icons';
const Weather = () => {
return <WeatherIcon iconId={200} name="owm" night />;
};
Name | Type | Required? | default | Description |
---|---|---|---|---|
iconId | number | Required | Icon Id that OpenWeatherMap and Yahoo Weather API provides. | |
name | owm or yahoo | Required | API name you use. | |
night | boolean | Optional | false | If sets true, icons change to night icons. (note: night is only for "owe" icons) |
className | string | Optional | Your own className. |
if only use CSS files, import them as follows,
import 'weather-react-icons/lib/css/weather-icons.css';
import 'weather-react-icons/lib/css/weather-icons-wind.css';
FAQs
A React component for weather icons for use with Open Weather and Yahoo Weather APIs.
The npm package weather-react-icons receives a total of 119 weekly downloads. As such, weather-react-icons popularity was classified as not popular.
We found that weather-react-icons 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.
Security News
GitHub is susceptible to a CDN flaw that allows attackers to host malware on any public repository.
Security News
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
Research
Security News
The Socket Research team found this npm package includes code for collecting sensitive developer information, including your operating system username, Git username, and Git email.