Skip to main content

latest

一个算法库,目前包括了身份证号码识别。

This package works with Bun, Cloudflare Workers, Node.js, Deno, Browsers
JSR Score
100%
Published
4 weeks ago (0.1.0)

introduction

checkID is a simple module that check the ID.

Examples

first new a ts file named test.ts.

import { checkID } from "@xtool/check-id";

console.log(checkID('410582199802151352')); //false
console.log(checkID('410582199802151353')); //true

then run the below command:

# install the module
$ deno add @xtool/check-id

# run the test.ts
$ deno run test.ts

Add Package

deno add @xtool/algorithm

Import symbol

import * as mod from "@xtool/algorithm";

Add Package

npx jsr add @xtool/algorithm

Import symbol

import * as mod from "@xtool/algorithm";

Add Package

yarn dlx jsr add @xtool/algorithm

Import symbol

import * as mod from "@xtool/algorithm";

Add Package

pnpm dlx jsr add @xtool/algorithm

Import symbol

import * as mod from "@xtool/algorithm";

Add Package

bunx jsr add @xtool/algorithm

Import symbol

import * as mod from "@xtool/algorithm";