Skip to content

常用工具函数,比如 cookie,eventbus,基于策略模式验证函数validator,类型校验getType,参数校验 validParams 等

License

Notifications You must be signed in to change notification settings

BreathlessWay/zUtils

Repository files navigation

zUtils

使用方式

// 安装模块
npm i @breathlessway/zutils -S

// 使用模块

import { GetType } from '@breathlessway/zutils'

GetType.isDate('')

一个常用工具函数的集合

// cookie处理方法
export { default as CookieHandler } from "utils/CookieHandler";
// 日期格式化方法
export { default as DateFormat } from "utils/DateFormat";
// eventbus
export { default as EventBus } from "utils/EventBus";
// 策略模式表单验证
export { default as ValidatorFunc } from "utils/ValidatorFunc";
// 验证数据类型
export { default as GetType } from "utils/GetType";
// 验证函数参数
export {
validStringParams,
validFunctionParams,
validArrayParams,
validObjectParams,
validObjectInstanceType,
validRegExpParams,
validNumberParams,
} from "utils/validParams";

About

常用工具函数,比如 cookie,eventbus,基于策略模式验证函数validator,类型校验getType,参数校验 validParams 等

Resources

License

Stars

Watchers

Forks

Packages

No packages published