
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
preview-image-css3
Advanced tools
图片预览组件,基于 CSS3 实现,提供对图片的放大、缩小、移动等一些列的变换操作。
npm install preview-image-css3 --save-dev
var PreviewImage = require("preview-image-css3");
var previewImage = new PreviewImage( element, {
imageSrc: 'http://xxx.com/xxx.png', // 图片地址
doubleZoom: 2, // 双击缩放
maxZoom: 4, // 最大缩放
minZoom: 1, // 最小缩放
softY: true, // x 轴支持
softX: true, // y 轴支持
});
previewImage.start(); // 开始执行图片拉取和渲染
previewImage.unbind(); // 解除事件绑定
previewImage.bind(); // 开启事件绑定
previewImage.reset(); // 重置为初始状态
FAQs
## 简介
We found that preview-image-css3 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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.