{"_id":"@code-ts/cin","_rev":"2-7de662398c0f38dde72e3e22dc049f5e","name":"@code-ts/cin","dist-tags":{"latest":"0.0.3"},"versions":{"0.0.0":{"name":"@code-ts/cin","version":"0.0.0","keywords":["code-ts","cin","id-card","parse","validate","身份证号码","解析","校验"],"author":{"name":"ntnyq","email":"ntnyq13@gmail.com"},"license":"MIT","_id":"@code-ts/cin@0.0.0","maintainers":[{"name":"ntnyq","email":"ntnyq13@gmail.com"}],"dist":{"shasum":"7e1aabe8060f3313cdf8d3e95a89923f8a598c38","tarball":"https://registry.npmjs.org/@code-ts/cin/-/cin-0.0.0.tgz","fileCount":27,"integrity":"sha512-CqQEML8cj98bj3fdcdd+SsclESpoGf7dYOsqoqgd0Mg1meGXvaLvJY3Zfz7ZEjPQRe6ovzJN5IljAxEQdpNqVw==","signatures":[{"sig":"MEYCIQDo0NrQObwrP55gmtpSVkfcG0eoIb2bPqMedvYK751KYgIhAKv9BkwvbMEywyp9qObD1ZU6YHVGjFUzRAuZ/4JIYt5k","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":8438},"main":"./dist/index.js","_from":"file:code-ts-cin-0.0.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"},"./*":"./*"},"scripts":{"dev":"DEV=1 tsup","build":"tsup && tsx ../../scripts/postbuild.mts"},"_npmUser":{"name":"ntnyq","email":"ntnyq13@gmail.com"},"_resolved":"/private/var/folders/3w/9n1w8j9d7ljgpv3x4xym6hf40000gn/T/1b40085539422ac7fc607980972f300f/code-ts-cin-0.0.0.tgz","_integrity":"sha512-CqQEML8cj98bj3fdcdd+SsclESpoGf7dYOsqoqgd0Mg1meGXvaLvJY3Zfz7ZEjPQRe6ovzJN5IljAxEQdpNqVw==","_npmVersion":"8.19.4","description":"Utils about citizen identification number | 公民身份证号码工具方法","directories":{},"_nodeVersion":"16.20.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/cin_0.0.0_1686042454418_0.8947185043981345","host":"s3://npm-registry-packages"}},"0.0.2":{"name":"@code-ts/cin","version":"0.0.2","keywords":["code-ts","cin","id-card","parse","validate","身份证号码","解析","校验"],"author":{"name":"ntnyq","email":"ntnyq13@gmail.com"},"license":"MIT","_id":"@code-ts/cin@0.0.2","maintainers":[{"name":"ntnyq","email":"ntnyq13@gmail.com"}],"dist":{"shasum":"574a64df3e55a180ae5f12d33830e62fa6c0ccb2","tarball":"https://registry.npmjs.org/@code-ts/cin/-/cin-0.0.2.tgz","fileCount":28,"integrity":"sha512-ZFIcwfxnYeBKAJSInmvKk3ogblkQTUUZDA1biqiEoukiAFsX3ldlQp+ZHooFIMeSYuR/32pGSNtFtgDl8TwyXQ==","signatures":[{"sig":"MEYCIQDNHrU4YLuBCTVokpYIyGd43sya4aaJWCJGjPqE3VczOQIhANwkgG2LB6sGAi7wM375miuX9SEjLIg8AT6Dy6eL5Jof","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":16206},"main":"./dist/index.js","_from":"file:code-ts-cin-0.0.2.tgz","types":"./dist/index.d.ts","module":"./dist/index.mjs","exports":{".":{"import":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"},"require":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"./package.json":"./package.json"},"scripts":{"dev":"DEV=1 tsup","build":"tsup"},"_npmUser":{"name":"ntnyq","email":"ntnyq13@gmail.com"},"_resolved":"/private/var/folders/3w/9n1w8j9d7ljgpv3x4xym6hf40000gn/T/e287d7b3b60c0b6728fded6a50ba5adc/code-ts-cin-0.0.2.tgz","_integrity":"sha512-ZFIcwfxnYeBKAJSInmvKk3ogblkQTUUZDA1biqiEoukiAFsX3ldlQp+ZHooFIMeSYuR/32pGSNtFtgDl8TwyXQ==","_npmVersion":"9.6.7","description":"Utils about citizen identification number | 公民身份证号码工具方法","directories":{},"_nodeVersion":"18.17.1","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/cin_0.0.2_1695896307369_0.19229182831673608","host":"s3://npm-registry-packages"}},"0.0.3":{"name":"@code-ts/cin","version":"0.0.3","description":"Utils about citizen identification number | 公民身份证号码工具方法","keywords":["code-ts","cin","id-card","parse","validate","身份证号码","解析","校验"],"license":"MIT","author":{"name":"ntnyq","email":"ntnyq13@gmail.com"},"homepage":"https://github.com/code-ts/core#readme","bugs":{"url":"https://github.com/code-ts/core/issues"},"repository":{"type":"git","url":"git+https://github.com/code-ts/core.git"},"exports":{"./package.json":"./package.json",".":{"import":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"main":"./dist/index.mjs","module":"./dist/index.mjs","types":"./dist/index.d.ts","publishConfig":{"access":"public"},"scripts":{"build":"unbuild","dev":"unbuild --stub"},"_id":"@code-ts/cin@0.0.3","_integrity":"sha512-XU2dcNuftXeosjrBQkzL2jS3rYv7LRlsCxbmz+mWvHFhwCmcPRihdUAbWDOA7cg3qRqYGfg0+mY62BbV+XRMWA==","_resolved":"/private/var/folders/3w/9n1w8j9d7ljgpv3x4xym6hf40000gn/T/f37bc84502cde0cb4c4ec13b85d52bfa/code-ts-cin-0.0.3.tgz","_from":"file:code-ts-cin-0.0.3.tgz","_nodeVersion":"20.11.0","_npmVersion":"10.2.4","dist":{"integrity":"sha512-XU2dcNuftXeosjrBQkzL2jS3rYv7LRlsCxbmz+mWvHFhwCmcPRihdUAbWDOA7cg3qRqYGfg0+mY62BbV+XRMWA==","shasum":"50d800143f692dd60dfea6c75246d5aeba17b288","tarball":"https://registry.npmjs.org/@code-ts/cin/-/cin-0.0.3.tgz","fileCount":8,"unpackedSize":7488,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCT5Uwv6kmA2xShV3bnUQNL60wwlpkjvzWag/Vq3XQugAIgIz6xn8b9EJobre8FKbKtgNIXNo4gRd2FFKoFfgc7N/0="}]},"_npmUser":{"name":"ntnyq","email":"ntnyq13@gmail.com"},"directories":{},"maintainers":[{"name":"ntnyq","email":"ntnyq13@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cin_0.0.3_1723911761476_0.47658721193388676"},"_hasShrinkwrap":false}},"time":{"created":"2023-06-06T09:07:34.335Z","modified":"2024-08-17T16:22:41.860Z","0.0.0":"2023-06-06T09:07:34.613Z","0.0.2":"2023-09-28T10:18:27.564Z","0.0.3":"2024-08-17T16:22:41.663Z"},"author":{"name":"ntnyq","email":"ntnyq13@gmail.com"},"license":"MIT","keywords":["code-ts","cin","id-card","parse","validate","身份证号码","解析","校验"],"description":"Utils about citizen identification number | 公民身份证号码工具方法","maintainers":[{"name":"ntnyq","email":"ntnyq13@gmail.com"}],"readme":"# @code-ts/cin\n\n> Utils about citizen identification number | 公民身份证号码工具方法.\n\n## Install\n\n```bash\nnpm i @code-ts/cin\n```\n\n```bash\nyarn add @code-ts/cin\n```\n\n```bash\npnpm add @code-ts/cin\n```\n\n## Usage\n\n```js\nimport { validateCIN } from '@code-ts/cin'\n\nvalidateCIN('110101199003076878') // true\n```\n\n## API\n\n### validateCIN\n\nCheck if the given code match the CIN pattern.\n\nType definition:\n\n```ts\nfunction validateCIN(code: string): boolean\n```\n\n## Credits\n\n- [GB 11643-1999 公民身份号码 - 维基百科](https://zh.wikipedia.org/wiki/%E5%85%AC%E6%B0%91%E8%BA%AB%E4%BB%BD%E5%8F%B7%E7%A0%81)\n\n## License\n\n[MIT](./LICENSE) License © 2023-PRESENT [ntnyq](https://github.com/ntnyq)\n","readmeFilename":"README.md","homepage":"https://github.com/code-ts/core#readme","repository":{"type":"git","url":"git+https://github.com/code-ts/core.git"},"bugs":{"url":"https://github.com/code-ts/core/issues"}}