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.
@outisfun/xpr-npm
Advanced tools
The XPR.SplitText module creates a GSAP Split Text element out of a heading with the option to animate it on page enter, or programmatically.
!!! Important: The GSAP SplitText Module is premium, so it doesn't come with the npm package. You have to add it manually and require it before requiring the XPR module:
var gsap = require('gsap');
require("gsap/umd/SplitText.js");
var XPR = require('@outisfun/xpr-npm');
Init by specifying a parent container (mandatory), markup (mandatory), and options as follows:
var headingEl = document.querySelector("h1"); // select a heading element
var splitTextEl = new XPR.SplitText(headingEl);
The module comes with default settings for animations and events, but you can override them like this:
var headingEl = document.querySelector("h1"); // select a heading element
var opts = {
animation: {
from: {
y: 20,
opacity: 0
},
to: {
y: 0,
opacity: 1,
ease: Power2.easeOut
}
},
speed: 0.55,
staggerSpeed: 0.002,
animateOnPageEnter: false
}
var splitTextEl = new XPR.SplitText(headingEl, opts);
// if you set animateOnPageEnter to false, you have to trigger the animation manually, like this:
splitTextEl.animate();
FAQs
A small collection of XPR modules and helper funcs.
We found that @outisfun/xpr-npm 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.