1.0.10 • Published 1 year ago

@shixinde/utils v1.0.10

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

安装

npm install @shixinde/utils

基础使用

import { mobileCheck, copy } from '@shixinde/utils'

console.log('result ===>', mobileCheck('15512659886')) //结果返回true
console.log('result ===>', mobileCheck('666')) //结果返回false
console.log('result ===>', copy('复制文本'))  //结果返回true 文本内容已存在剪贴板

专业人士请看下图

/**
 * 复制
 */
export declare const copy: (value: string) => boolean;

/**
 * 邮箱校验
 */
export declare const emailCheck: (value: string) => boolean;

/**
 * 身份证校验
 */
export declare const idCardCheck: (value: string) => boolean;

/**
 * 手机号校验
 */
export declare const mobileCheck: (value: string) => boolean;

/**
 * @description 类型解释
 * @param value 关键字
 * @param options 类型
 * @param v 匹配的关键字
 * @param l 返回的字段
 * @returns {string|*}
 */
export declare const paraphrase: (value: string | number, options?: any[], v?: string, l?: string) => string;

export { }
1.0.10

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago