
Security News
Insecure Agents Podcast: Certified Patches, Supply Chain Security, and AI Agents
Socket CEO Feross Aboukhadijeh joins Insecure Agents to discuss CVE remediation and why supply chain attacks require a different security approach.
cin-checksum
Advanced tools
Citizen identification number(GB 11643-1999) Checksum
yarn add cin-checksum
dist/
├─ index.js ( UMD )
├─ index.min.js ( UMD, compressed )
├─ index.mjs ( ES Module )
├─ index.min.mjs ( ES Module, compressed )
├─ index.cjs ( CommonJS )
└─ index.min.cjs ( CommonJS, compressed )
<!-- ES Module -->
<script type="module">
import {
generateCinCheckNumber,
isInvalidCinNumber,
} from 'https://unpkg.com/cin-checksum?module'
</script>
<!-- UMD -->
<script src="https://unpkg.com/cin-checksum" nomodule></script>
UMD build exports a global object CIN contains two methods CIN.generateCinCheckNumber and CIN.isInvalidCinNumber
// ES Module
import {generateCinCheckNumber, isInvalidCinNumber} from 'cin-checksum'
Generate check number (校验码) with master number (本体码, leading 17 digits of CIN number).
generateCinCheckNumber('11010519491231002')
// -> 'X'
generateCinCheckNumber('44052418800101001')
// -> '4'
masterNumberstringMaster number (本体码, leading 17 digits of CIN number) to generate check number (校验码).
Check given CIN number has invalid check bit.
[!Warning] This function does not check area code (地址码), birth date (出生日期码), and order code (顺序码).
isInvalidCinNumber('11010519491231002X')
// -> true
stringCIN number (case insensitive).
isInvalidCinNumber('11010519491231002X')
// -> true
isInvalidCinNumber('11010519491231002x')
// -> true
isInvalidCinNumber('110105194912310020')
// -> true
FAQs
Citizen identification number(GB 11643-1999) Checksum
The npm package cin-checksum receives a total of 13 weekly downloads. As such, cin-checksum popularity was classified as not popular.
We found that cin-checksum demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 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 CEO Feross Aboukhadijeh joins Insecure Agents to discuss CVE remediation and why supply chain attacks require a different security approach.

Security News
Tailwind Labs laid off 75% of its engineering team after revenue dropped 80%, as LLMs redirect traffic away from documentation where developers discover paid products.

Security News
The planned feature introduces a review step before releases go live, following the Shai-Hulud attacks and a rocky migration off classic tokens that disrupted maintainer workflows.