
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
ethiopian_map
Advanced tools
A customizable React component for interactive SVG maps of Ethiopian regions with TypeScript support
Ethiopia Map Component A customizable React component for rendering an interactive SVG map of Ethiopian regions. Installation npm install @your-org/ethiopia-map-component
Usage import React, { useState } from 'react'; import { MapComponent } from '@your-org/ethiopia-map-component';
const App: React.FC = () => { const [selectedRegion, setSelectedRegion] = useState<string | null>(null);
return (
<MapComponent
selectedRegion={selectedRegion}
setSelectedRegion={setSelectedRegion}
defaultFillColor="#00C4B4"
activeFillColor="#40E0D0"
hoverFillColor="#40E0D0"
tooltipContent={(regionId) => Region: ${regionId}
}
enableZoom={true}
zoomLevel={1.2}
/>
);
};
export default App;
Props
Prop Type Default Description
selectedRegion string | null null Currently selected region ID
Function to update selected region
regions MapRegion[] demoData Array of region data (id, name, points/path)
defaultFillColor string #00C4B4 Default fill color for regions
activeFillColor string #40E0D0 Fill color for active region
hoverFillColor string #40E0D0 Fill color on hover
strokeColor string #808080 Default stroke color
activeStrokeColor string #FFFFFF Stroke color for active region
strokeWidth number 1 Default stroke width
activeStrokeWidth number 2 Stroke width for active region
hoverOpacity number 0.9 Opacity on hover
className string flex flex-col lg:flex-row gap-4 p-4 Container class name
svgClassName string w-full h-auto SVG element class name
Callback on region hover
Callback on region click
Function to render tooltip content
width string | number 100% SVG width
height string | number auto SVG height
viewBox string 0 0 441.853 328.295 SVG viewBox
enableZoom boolean false Enable zoom functionality
zoomLevel number 1 Zoom level for the map
customStyles string '' Additional CSS styles for the SVG
License MIT
FAQs
A customizable React component for interactive SVG maps of Ethiopian regions with TypeScript support
The npm package ethiopian_map receives a total of 0 weekly downloads. As such, ethiopian_map popularity was classified as not popular.
We found that ethiopian_map demonstrated a healthy version release cadence and project activity because the last version was released less than 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
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.