Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
weather-react-icons
Advanced tools
A React component for weather icons for use with Open Weather and Yahoo Weather APIs.
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 59 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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.