
Security News
PolinRider: North Korea-Linked Supply Chain Campaign Expands Across Open Source Ecosystems
PolinRider expands across npm, Packagist, Go modules, and Chrome extensions, using hidden loaders to target developer environments.
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 9 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
PolinRider expands across npm, Packagist, Go modules, and Chrome extensions, using hidden loaders to target developer environments.

Security News
Open source attacks are accelerating as AI coding agents pull in dependencies faster, with less human review.

Research
/Security News
Malicious Chrome and Firefox extensions posed as free VPNs while stealing clipboard data through later extension updates.