Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
An ES6/ES7 sourced DOMMatrix shim for Node.js apps and legacy browsers originally authored by Arian Stolwijk with his CSSMatrix.
The constructor should work as defined by the w3c CSS3 3d Transforms specification.
This version comes with the following changes:
afine
property and replaced it with is2D
to be more inline with DOMMatrixisIdentity
propertynpm install dommatrix
It should be compatible with documentation defined at w3.org and WebKitCSSMatrix Safari documentation.
Examples
// ES6/ES7
import CSSMatrix from 'dommatrix'
// init
let myMatrix = new CSSMatrix('perspective(400px) rotateX(45deg)')
// call methods, also numeric values should work
myMatrix.translate(45)
OR
// Node.js
var CSSMatrix = require('dommatrix');
// init
let myMatrix = new CSSMatrix('rotate(45deg)')
translate(x, y, z)
scale(x, y, z)
rotate(rx, ry, rz)
rotateAxisAngle(x, y, z, angle)
skewX(angle)
skewY(angle)
toString()
DOMMatrix is MIT Licensed.
FAQs
ES6+ shim for DOMMatrix
The npm package dommatrix receives a total of 366,257 weekly downloads. As such, dommatrix popularity was classified as popular.
We found that dommatrix 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 researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.