Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
draw-shape-reactjs
Advanced tools
React js package to draw simple shapes like line, circle, rectangle etc.
Simple react component to draw shapes like
npm install draw-shape-reactjs
import React from 'react';
import {
Line,
SteppedLine,
PolyLine,
Circle,
Rectangle
} from 'draw-shape-reactjs';
function App() {
return (
<div className='App'>
<div
style={{
left: '500px',
height: '100vh',
width: '50vw',
position: 'relative'
}}>
<Line
position='fixed'
from={[110, 610]}
to={[600, 850]}
color='#1DBFE7'
/>
<SteppedLine
from={[0, 300]}
to={[900, 650]}
zIndex={2}
color='#9c27b0'
/>
<PolyLine
position='fixed'
points={[[45, 60], [36, 120], [400, 500], [45, 60]]}
color='#ff8f00'
/>
<Circle center={[800, 200]} radius={100} color='#00701a' />
<Rectangle
corner={[430, 160]}
height={50}
width={100}
color='#FF0266'
/>
</div>
</div>
);
}
export default App;
Line
React component prop. types:
from
:
to
:
lineWeight
:
color
:
zIndex
:
position
:
SteppedLine
React component prop. types:
from
:
to
:
lineWeight
:
color
:
zIndex
:
position
:
PolyLine
React component prop. types:
points
:
lineWeight
:
color
:
zIndex
:
position
:
Circle
React component prop. types:
center
:
radius
:
lineWeight
:
color
:
zIndex
:
position
:
Rectangle
React component prop. types:
corner
:
height
:
width
:
lineWeight
:
color
:
zIndex
:
position
:
FAQs
React js package to draw simple shapes like line, circle, rectangle etc.
The npm package draw-shape-reactjs receives a total of 180 weekly downloads. As such, draw-shape-reactjs popularity was classified as not popular.
We found that draw-shape-reactjs 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
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.