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.
github.com/madbence/node-drawille-canvas
HTML5 Canvas API for drawille
.
$ npm install drawille-canvas
In node v0.10
it's a bit slow, with node v0.11
it runs very smoothly.
See example, check out in the console (node example
) or in the browser (example.html
).
Creates a new Canvas
with the given dimensions.
For method details, see CanvasRenderingContext2D
on MDN
Fills the given area of the canvas.
Clears the given area of the canvas.
Save the current transformation matrix on the stack.
Restore the last transformation matrix.
Translate the current transformation matrix.
Rotate the current transformation matrix with the given angles.
Scale the current transformation matrix.
Start a new path.
Close the current path.
Moves the starting point of the next segment to the given coordinates.
Connects the starting point with the given point with a straight line.
Stroke the current path.
.fill
to fill paths.arc
, .arcTo
MIT
FAQs
Unknown package
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.