
Research
/Security News
Malicious npm Packages Target WhatsApp Developers with Remote Kill Switch
Two npm packages masquerading as WhatsApp developer libraries include a kill switch that deletes all files if the phone number isn’t whitelisted.
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.
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
Two npm packages masquerading as WhatsApp developer libraries include a kill switch that deletes all files if the phone number isn’t whitelisted.
Research
/Security News
Socket uncovered 11 malicious Go packages using obfuscated loaders to fetch and execute second-stage payloads via C2 domains.
Security News
TC39 advances 11 JavaScript proposals, with two moving to Stage 4, bringing better math, binary APIs, and more features one step closer to the ECMAScript spec.