
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.
scratch-card-canvas
Advanced tools
npm install scratch-card-canvas
or
yarn add scratch-card-canvas
import ScratchCard from 'scratch-card-canvas';
new ScratchCard({
canvas: dom,
});
| 参数 | 类型 | 说明 | 必填 | 默认 |
|---|---|---|---|---|
| canvas | HTMLCanvasElement | canvas实例 | true | - |
| showAllPercent | number | 开启随机绘制比例 | false | 80 |
| radius | number | 绘制图片圆角度数 | false | 20 |
| coverColor | string | 蒙层颜色 | false | #666 |
| coverImg | string | 蒙层图片 | false | - |
| callback | function | 绘制完成回调函数 | false | void |
FAQs
We found that scratch-card-canvas 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.