# chinese-social-credit-code

> chinese-social-credit-code ============ - chinese-social-credit-code

Latest version **1.0.4** (published 2024-10-21) · ISC license · 0 weekly downloads

## Install

```sh
npm install chinese-social-credit-code
pnpm add chinese-social-credit-code
yarn add chinese-social-credit-code
bun add chinese-social-credit-code
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.4 |
| Published | 2024-10-21 |
| First published | 2021-03-05 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | ihgazni2 |

## Links

- npm: https://www.npmjs.com/package/chinese-social-credit-code
- npm.io page: https://npm.io/package/chinese-social-credit-code

## Recent versions

- 1.0.4 (latest) — 2024-10-21
- 1.0.2 — 2024-10-21
- 1.0.1 — 2021-03-07
- 1.0.0 — 2021-03-05

## README

chinese-social-credit-code
============
- chinese-social-credit-code 
- 统一社会信用码  输入校验用

install
=======
- npm install chinese-social-credit-code 

usage
=====
    
example
-------

    const {
        validate,
        is_social_credit_code,
        MSG_DICT,
        CODE_DICT,
        MD
    } = require("chinese-social-credit-code")
    
    
    > validate("12440300695588698")
    { code: 2, msg: 'length-must-be-18' }
    > validate("124403006955886981")
    { code: 3, msg: 'logic-check-code-not-match' }
    > validate("124403006955886982")
    { code: 0, msg: 'success' }
    >
    > is_social_credit_code("124403006955886982")
    true
    > MSG_DICT
    {
      succ: 'success',
      length: 'length-must-be-18',
      char: 'must be 0123456789ABCDEFGHJKLMNPQRTUWXY',
      logic_check_code: 'logic-check-code-not-match'
    }
    > CODE_DICT
    { succ: 0, char: 1, length: 2, logic_check_code: 3 }
    > MD
    {
      '0': 'success',
      '1': 'length-must-be-18',
      '2': 'must be 0123456789ABCDEFGHJKLMNPQRTUWXY',
      '3': 'logic-check-code-not-match',
      success: 0,
      'length-must-be-18': 1,
      'must be 0123456789ABCDEFGHJKLMNPQRTUWXY': 2,
      'logic-check-code-not-match': 3
    }
    >



LICENSE
=======
- ISC

---
_Source: https://npm.io/package/chinese-social-credit-code · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
