Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
lucky-canvas
Advanced tools
English:If anyone can help translate the document, please contact me
ldq404@qq.com
<div id="my-lucky"></div>
<script src="https://cdn.jsdelivr.net/npm/lucky-canvas@1.6/dist/index.umd.min.js"></script>
<script>
const myLucky = new LuckyCanvas.LuckyWheel('#my-lucky', {
width: '200px',
height: '200px',
blocks: [{ padding: '10px', background: '#869cfa' }],
prizes: [
{ fonts: [{ text: '0' }], background: '#e9e8fe' },
{ fonts: [{ text: '1' }], background: '#b8c5f2' },
{ fonts: [{ text: '2' }], background: '#e9e8fe' },
{ fonts: [{ text: '3' }], background: '#b8c5f2' },
{ fonts: [{ text: '4' }], background: '#e9e8fe' },
{ fonts: [{ text: '5' }], background: '#b8c5f2' },
],
})
</script>
如果您觉得这个项目还不错, 可以在 Github 上面帮我点个star
, 支持一下作者 ☜(゚ヮ゚☜)
FAQs
一个基于原生 js 的(大转盘 / 九宫格 / 老虎机)抽奖插件
The npm package lucky-canvas receives a total of 2,538 weekly downloads. As such, lucky-canvas popularity was classified as popular.
We found that lucky-canvas demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.