0.0.3 • Published 1 year ago
@code-ts/cin v0.0.3
@code-ts/cin
Utils about citizen identification number | 公民身份证号码工具方法.
Install
npm i @code-ts/cinyarn add @code-ts/cinpnpm add @code-ts/cinUsage
import { validateCIN } from '@code-ts/cin'
validateCIN('110101199003076878') // trueAPI
validateCIN
Check if the given code match the CIN pattern.
Type definition:
function validateCIN(code: string): boolean