# kc-test

> 前端校验工具

Latest version **1.0.1** (published 2020-05-10) · ISC license · 0 weekly downloads

## Install

```sh
npm install kc-test
pnpm add kc-test
yarn add kc-test
bun add kc-test
```

## 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.1 |
| Published | 2020-05-10 |
| First published | 2020-05-09 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 6.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | kunchi |
| Maintainers | 2461556682 |
| Keywords | js, 检验工具 |

## Links

- npm: https://www.npmjs.com/package/kc-test
- npm.io page: https://npm.io/package/kc-test

## Dependencies (2)

- [babel](https://npm.io/package/babel.md) ^6.23.0
- [babel-preset-es2015](https://npm.io/package/babel-preset-es2015.md) ^6.24.1

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 1.0.1 (latest) — 2020-05-10
- 1.0.0 — 2020-05-09

## README

安装

```
npm install kc-test
```

引入模块

```
import test from 'kc-test'

```

支持校验如下

```
test.isPhone('18817577777') // 手机号码是否正确
test.isPassword('abc1234')  // 密码格式是否正确
test.isEmail('2461556682@qq.com') //邮箱是否有效
test.isMoney(12.3)    //校验金钱的格式
test.isTaxAvailable('1232000046600736XP') // 是否是纳税人识别号
test.isExpress('8161823617823') // 是否是快递单号
test.isIDCard('412728199401087834') // 是否是身份证号码
test.isRealName('周杰')// 是否是汉字名称

```

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