
Security News
The Code You Didn't Write Is Still Yours to Defend
AI agents are pulling packages into environments no scanner is watching, creating exposure before security teams can see it.
make-barcode
Advanced tools
使用Luhm 校验算法生成一段条码
1、从最后一位数字开始,逆向将奇数位(1、3、5等等)相加。
2、从最后一位数字开始,逆向将偶数位数字,先乘以2(如果乘积为两位数,则将其减去9),再求和。
3、将奇数位总和加上偶数位总和,结果应该可以被10整除。
import { getCodeNumber, checkCode } from 'make-barcode';
// 生成条码
const code = getCodeNumber('18');
// 验证条码
const result = checkCode(code)
FAQs
使用Luhm 校验算法生成一段条码
The npm package make-barcode receives a total of 12 weekly downloads. As such, make-barcode popularity was classified as not popular.
We found that make-barcode 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
AI agents are pulling packages into environments no scanner is watching, creating exposure before security teams can see it.

Security News
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.