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.
@daeinc/draw
Advanced tools
drawing utilities for HTML5 Canvas.
npm i @daeinc/draw
then,
import { ... } from "@daeinc/draw"
It uses two custom types, Pt
and Pts
, each representing number[]
and Pt[]
.
import type { Pt, Pts } from "@daeinc/geom";
const drawCircle: (ctx: CanvasRenderingContext2D, pt: Pt, diam: number) => void;
const drawFillText: (
ctx: CanvasRenderingContext2D,
msg: string,
pt: Pt
) => void;
const drawLine: (ctx: CanvasRenderingContext2D, pt1: Pt, pt2: Pt) => void;
const drawPath: (
ctx: CanvasRenderingContext2D,
path: Pts,
close?: boolean
) => void;
const drawSmoothPath: (ctx: CanvasRenderingContext2D, path: Pts) => void;
Uses quadratic curves to smoothen hard edges of path. The input path is expected to be generated with generateSmoothPath()
from another package @daeinc/geom
.
MIT
FAQs
drawing utilities for HTML5 Canvas
The npm package @daeinc/draw receives a total of 62 weekly downloads. As such, @daeinc/draw popularity was classified as not popular.
We found that @daeinc/draw demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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.