0.0.3 • Published 1 year ago

@bizk/regexps v0.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@bizk/regexps

NPM version NPM downloads

常用正则表达式,统一应用站点正则校验,保障同一规则下数据安全。

详细文档

安装方式

推荐使用pnpm作为包管理工具。当然也可使用npm或者yarn

pnpm add @bizk/regexps

示例

手机号码

import { iphone } from '@bizk/regexps';

iphone.test('15828058888');

电子邮箱

import { email } from '@bizk/regexps';

email.test('libra@bizk.com');

URL

import { url } from '@bizk/regexps';

url.test('github.com/qhanw');

身份证号

import { idCard } from '@bizk/regexps';

idCard.test('510101198812125432');

IP 地址

import { ip } from '@bizk/regexps';

ip.test('192.168.8.8');

银行卡号

import { bankCard } from '@bizk/regexps';

bankCard.test('6222024444428455333');

统一社会信用代码

import { uscc } from '@bizk/regexps';

uscc.test('6222024444428455333');

邮政编码

import { postcode } from '@bizk/regexps';

postcode.test('6222024444428455333');
0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago