npm install hrbu-util
const hrbuUtil = require("hrbu-util");
// 调用 dataFormat 对时间进行格式化
const dtStr = hrbuUtil.dateFormat(new Date());
// 结果 2022-3-24 20:01:33
// 获取4位字母与数字组成的验证码
const dtStr = hrbuUtil.verificationCode(4);
// 结果 rds7
// 获取6位字母与数字组成的验证码
const dtStr = hrbuUtil.verificationCode(6);
// 结果 vr9ktc