Research
Security News
Kill Switch Hidden in npm Packages Typosquatting Chalk and Chokidar
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
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 375,797 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 found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.