1.0.2 • Published 5 years ago

exp_build v1.0.2

Weekly downloads
2
License
ISC
Repository
github
Last release
5 years ago

说明

exp_build 是用于生成包含大写字母小写字母数字特殊字符和最小长度的正则字符串,主要用于自动生成密码正则。

使用

npm install exp_build
import expBuild from "exp_build";

expBuild({
  upper: true,
  lower: true,
  number: true,
  symbol: true,
  length: 8
}).test("aaAs3r?tddddddddd");

参数

参数默认值含义
upperfalse包含大写字母
lowerfalse包含小写字母
numberfalse包含数字
symbolfalse包含特殊字符
length0字符串长度设置

补充 - 通过下图生成正则

avatar

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago